-
Notifications
You must be signed in to change notification settings - Fork 112
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
BLS entries consistency across architectures #1566
Comments
This might relate to ostreedev/ostree@10e465c which we should probably turn on by default now (i did in the c9s-bootc images) |
Hmm. I think there is something I am missing and you can help me understand. If we set |
|
Saving future me some time.. The relevant part here is that commit changes the deploy code to create a symlink in the /boot directory that points back to itself.
so effectively so |
This means an alernative option (specifically for the CoreOS building with OSBuild efforts) is to set |
This sounds simple enough (is it?). Let me know what you decide and if we should change the zipl.inst stage. |
Yes. It should be simple. For now we have dropped the ("fix the prefix") commit from #1558 Once that merges we'll make the other changes on our side and report back here to continue the discussion. |
This setting will make it so that BLS config entries get prepended with /boot. OSTree already places a boot -> . symlink in the root of the boot filesystem prepending with /boot will always just work. For context see osbuild/osbuild#1566 (comment) This also allows for dropping one of the upstream OSBuild zipl stage patches.
This setting will make it so that BLS config entries get prepended with /boot. OSTree already places a boot -> . symlink in the root of the boot filesystem prepending with /boot will always just work. For context see osbuild/osbuild#1566 (comment) This also allows for dropping one of the upstream OSBuild zipl stage patches.
This setting will make it so that BLS config entries get prepended with /boot. OSTree already places a boot -> . symlink in the root of the boot filesystem prepending with /boot will always just work. For context see osbuild/osbuild#1566 (comment) This also allows for dropping one of the upstream OSBuild zipl stage patches.
This setting will make it so that BLS config entries get prepended with /boot. OSTree already places a boot -> . symlink in the root of the boot filesystem prepending with /boot will always just work. For context see osbuild/osbuild#1566 (comment) This also allows for dropping one of the upstream OSBuild zipl stage patches.
This is a second round of f5677a3 (reverted in db7bf08). Now that coreos-installer in rawhide has coreos/coreos-installer#1422 we can set sysroot.bootprefix to true again. We can't do it in the non-OSBuild configs because not all streams have the new coreos-installer yet. Here is the comment from the original commit: This setting will make it so that BLS config entries get prepended with /boot. OSTree already places a boot -> . symlink in the root of the boot filesystem prepending with /boot will always just work. For context see osbuild/osbuild#1566 (comment) This also allows for dropping one of the upstream OSBuild zipl stage patches.
This is a second round of f5677a3 (reverted in db7bf08). Now that coreos-installer in rawhide has coreos/coreos-installer#1422 we can set sysroot.bootprefix to true again. We can't do it in the non-OSBuild configs because not all streams have the new coreos-installer yet. Here is the comment from the original commit: This setting will make it so that BLS config entries get prepended with /boot. OSTree already places a boot -> . symlink in the root of the boot filesystem prepending with /boot will always just work. For context see osbuild/osbuild#1566 (comment) This also allows for dropping one of the upstream OSBuild zipl stage patches.
In a recent PR where we are attempting to add CoreOS support to OSBuild for s390x we found the need to add some detection to the
zip.inst
stage for determining if/boot
should be added to the file path for the discovered kernel and initrd from the BLS entries. This started a discussion about why this was needed.The assumption I made up front is that all BLS config entries across all architectures would have a path for the kernel and initrd that was achored at the root of the filesystem for which the blscfg entries sat. i.e. if
/boot
is a separate filesystem then no/boot
would be prepended to the entries. This makes sense because this is the only way GRUB would be able to find the kernel and initrd IIUC.However s390x doesn't use GRUB and what we found (see the thread) is that the BLS config entries on s390x RHEL and Fedora images actually contained
/boot
in the path, even if there was a separate/boot
filesystem:This is actually by design (we think) as the script that creates this file on s390x hardcodes it:
I don't know if it is actually required for
/boot/
to be prepended to the BLS entries on s390x ot not, but @achilleas-k and I did run a test where we modified the script to not have/boot
on the front and did a kernel update and the system did at least update and reboot.So. The reason we ended up here is because the BLS config entries on an s390x CoreOS machine actually don't have
/boot
prepended (presumably because OSTree is the one creating those entries and it does it consistently across all architectures).Path forward:
/boot
in20-zipl-kernel.install
has meaning or not. If not maybe we should change it.zipl.inst
stage to handle either case. i.e. if it can find the file withoutboot
in the file path then use it. If not then try withboot
and use that if found, else error.The text was updated successfully, but these errors were encountered: