Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interactive-defaults.ks to updates image #463

Conversation

jkonecny12
Copy link
Member

The interactive-defaults is must have to enable testing of web ui on the boot.iso because we don't have support for package based installations there. This way we are serving the tarball for the VM which will be used as payload to overcome this missing implementation.

Do not SSH the interactive-defaults.ks into the VM when it's running but instead add the interactive-defaults.ks to the updates.img. The SSH copy of interactive-defaults.ks works but not reliably. The issue is that we are copying the interactive-defaults.ks to the running installation and if the file will land too late it won't be taken by the installer.

To avoid this issue add the interactive-defaults.ks content to the updates image before the VM is started.

@jkonecny12 jkonecny12 force-pushed the main-add-interactive-defaults-to-updates-image branch from e6b1fb7 to d6bf74d Compare October 4, 2024 15:36
@jkonecny12
Copy link
Member Author

@KKoukiou I'm not able to tell from the logs why I'm getting failures. Are you able to find more information?

os.makedirs(f"{tmp_dir}/{defaults_path}")
with open(f"{tmp_dir}/{defaults_path}/interactive-defaults.ks", "wt", encoding="utf-8") as f:
f.write(content)
os.system(f"cd {tmp_dir} && find . | cpio -c -o | gzip -9cv > {updates_image}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not extend the existing updates.img from what I understand - it overwrites it. Right?

Copy link
Member Author

@jkonecny12 jkonecny12 Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my, true.... how could I do such a dumb mistake... I'll fix that, thanks for spotting this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@jkonecny12 jkonecny12 force-pushed the main-add-interactive-defaults-to-updates-image branch 2 times, most recently from a6e9e23 to 793356c Compare October 7, 2024 16:48
@KKoukiou KKoukiou force-pushed the main-add-interactive-defaults-to-updates-image branch from 793356c to 9b45196 Compare October 8, 2024 12:28
The interactive-defaults is must have to enable testing of web ui on the
boot.iso because we don't have support for package based installations
there. This way we are serving the tarball for the VM which will be used
as payload to overcome this missing implementation.

Do not SSH the interactive-defaults.ks into the VM when it's running but
instead add the interactive-defaults.ks to the updates.img.
The SSH copy of interactive-defaults.ks works but not reliably. The
issue is that we are copying the interactive-defaults.ks to the running
installation and if the file will land too late it won't be taken by the
installer.

To avoid this issue add the interactive-defaults.ks content to the
updates image before the VM is started.
@jkonecny12 jkonecny12 force-pushed the main-add-interactive-defaults-to-updates-image branch from 9b45196 to 1f42a31 Compare October 8, 2024 12:40
@jkonecny12
Copy link
Member Author

I'm testing out switch from gzip to pigz which is used by Anaconda when updates images are created. This will hopefully help with

gzip: stdin: unexpected end of file
cpio: premature end of file

or

gzip: stdin: decompression OK, trailing garbage ignored
cat: write error: Broken pipe

and similar issues.

@jkonecny12 jkonecny12 force-pushed the main-add-interactive-defaults-to-updates-image branch 3 times, most recently from 0b98b29 to b38358d Compare October 9, 2024 09:04
@KKoukiou KKoukiou force-pushed the main-add-interactive-defaults-to-updates-image branch from b38358d to 6774fe3 Compare October 9, 2024 09:53
@jkonecny12
Copy link
Member Author

Thanks for the update @KKoukiou

@jkonecny12 jkonecny12 force-pushed the main-add-interactive-defaults-to-updates-image branch from 6774fe3 to 48378d0 Compare October 9, 2024 11:08
@jkonecny12
Copy link
Member Author

I removed the WIP commits.

@KKoukiou KKoukiou merged commit f34b479 into rhinstaller:main Oct 9, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants