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

live: add karg embed areas in GRUB/ISOLINUX configs #545

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Aug 4, 2020

This provides a buffer into which coreos-installer iso embed-kargs can
write additional kernel arguments for the live ISO. It must be located
right after the karg line in configuration files.

Note this doesn't touch zipl.prm, which is where ISO kernel args are
stored for s390x. Supporting this for s390x would need more
investigation and testing.

This provides a buffer into which `coreos-installer iso embed-kargs` can
write additional kernel arguments for the live ISO. It must be located
right after the karg line in configuration files.

Note this doesn't touch `zipl.prm`, which is where ISO kernel args are
stored for s390x. Supporting this for s390x would need more
investigation and testing.
@jlebon
Copy link
Member Author

jlebon commented Aug 4, 2020

See coreos/coreos-assembler#1637 and coreos/coreos-installer#341 for how this will be used.

Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Just two comments, otherwise LGTM

@jlebon jlebon merged commit e02c213 into coreos:testing-devel Aug 6, 2020
@jlebon jlebon deleted the pr/iso-kargs branch August 6, 2020 20:57
@bgilbert
Copy link
Contributor

bgilbert commented Aug 7, 2020

Apologies for the late comment, but would it make sense to use the bootloaders' respective include directives to put these in separate files?

@jlebon
Copy link
Member Author

jlebon commented Aug 8, 2020

Apologies for the late comment, but would it make sense to use the bootloaders' respective include directives to put these in separate files?

We need the buffer to be physically located near the kernel cmdline though. The way this works is below the level of the interpreters; coreos-installer just moves the newline character rightwards into the buffer as needed.

I think we could do a more "native" thing for GRUB at least. Something like:

# kargs_embed_area.cfg
set embedded_kargs="" ######...

and then

# grub.cfg
source kargs_embed_area.cfg
linux /images/vmlinuz @@KERNEL-ARGS@@ ignition.firstboot ignition.platform.id=metal $embedded_kargs

For ISOLINUX though, I don't see a way to play the same trick since it doesn't support variables.

@bgilbert
Copy link
Contributor

Ah, right. Okay, seems fine as is. 👍

jlebon added a commit to jlebon/os that referenced this pull request Jan 5, 2021
(Copied from coreos/fedora-coreos-config#545.)

This provides a buffer into which `coreos-installer iso embed-kargs` can
write additional kernel arguments for the live ISO. It must be located
right after the karg line in configuration files.

Note this doesn't touch `zipl.prm`, which is where ISO kernel args are
stored for s390x. Supporting this for s390x would need more
investigation and testing.

Closes: coreos/coreos-assembler#1988
c4rt0 pushed a commit to c4rt0/fedora-coreos-config that referenced this pull request Mar 27, 2023
manifest: Exclude unneeded udisks2
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.

3 participants