Bug 2036971

Summary: [image-installer] Kickstart doesn't end with a new line
Product: Red Hat Enterprise Linux 8 Reporter: Jiri Kortus <jikortus>
Component: osbuildAssignee: Ondřej Budai <obudai>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: jrusz, obudai
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: osbuild-45.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:41:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2008126    

Description Jiri Kortus 2022-01-04 14:34:31 UTC
Description of problem:
Kickstart contained within an "image-installer" ISO built by osbuild-composer doesn't end with a new line. This can be an issue when the kickstart is used as a base for extension with custom kickstart commands and the missing new line is not taken into account (as this results is an invalid kickstart).

Version-Release number of selected component (if applicable):
osbuild-composer-40-1.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install and start osbuild-composer.
2. Prepare and upload a blueprint.
3. Build an image-installer image type.
4. Mount the resulting image and inspect /osbuild.ks from the image.

Actual results:
The kickstart file (/osbuild.ks) doesn't end with a new line.

Expected results:
The kickstart file (/osbuild.ks) ends with a new line.

Comment 1 Jiri Kortus 2022-01-04 14:47:04 UTC
Upstream issue: https://github.com/osbuild/osbuild-composer/issues/2164

Comment 2 Ondřej Budai 2022-01-04 15:03:40 UTC
Hello,

thanks for the report, I opened https://github.com/osbuild/osbuild/pull/943 to fix this.

Comment 3 Jiri Kortus 2022-01-04 16:46:12 UTC
Thanks for addressing that so quickly, Ondro!

Comment 4 Jakub Rusz 2022-02-23 16:28:31 UTC
Checked the osbuild.ks in the resulting image with cat and newline is present:

[root@jrusz-rhel-8-testing temp]# cat -e osbuild.ks
liveimg --url file:///run/install/repo/liveimg.tar$

Tested with:
osbuild-46-1.el8.noarch
osbuild-composer-45-1.el8.x86_64

Moving to VERIFIED.

Comment 7 errata-xmlrpc 2022-05-10 13:41:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (osbuild bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1804