-
Notifications
You must be signed in to change notification settings - Fork 305
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 sysroot.bootprefix
option
#2705
Conversation
These repository options should be set from the start to ensure they're honored for the initial deployment too. Prep for using `sysroot.bootprefix = true` from ostreedev/ostree#2705
This is a follow up to ostreedev@0ced9fd "sysroot: Support /boot on root or as seperate filesystem for syslinux and u-boot" What we should have done at the time is changed our bootloader entries to be prefixed with `/boot`. This means that the GRUB2 BLS support will Just Work. For now, I'm making this option default to off out of a lot of conservatism. I think in the future we should flip this on by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
LGTM, but I don't have a good view of the bootloader context. |
Yeah, perhaps I'm being too chicken 🐔 here...but I'm just so uncertain of the potential blast radius. |
We've definitely had systems with |
If |
The reason I'm writing this patch now is I was experimenting with the "install inside existing system" on a CentOS Stream 9 cloud guest image, and that has one flat partition - so it needs this. |
These repository options should be set from the start to ensure they're honored for the initial deployment too. Prep for using `sysroot.bootprefix = true` from ostreedev/ostree#2705
Ah, right. That's another crappy downstream patch we have. I suppose if that's ever handled, it should work anyways since the FAT |
It would be really nice to have a kola test that exercises no separate boot filesystem. I think it would be fairly easy to hack an FCOS system to do it:
But I don't know if there are other parts of FCOS that will fall over if |
Yeah. Out of interest, what your downstream patch does? FYI the The Linux kernel patches are the following: 019a0c9e377c ("fat: add a vfat_rename2() and make existing .rename callback a helper") |
It's horrible and I hope to be able to get this resolved upstream sooner or later. |
Thanks for the links. I see the motivation there is using sd-boot, that's actually why I also was looking at having atomic replacements in vfat for the ESP. There's an open PR for this #1967 already that we may revive now that we have RENAME_EXCHANGE in vfat. Another nice thing for sd-boot support could be if ostree has an option to generate BLS snippets that follow the https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/ filename convention. |
It's definitely possible but pokes a bit into implementation details. Today for FCOS we end up "binding" I did test this manually locally, and we have a unit test too. |
This one should also be good to merge I think. |
@jmarrero this one needs a review stamp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This is a follow up to
0ced9fd
"sysroot: Support /boot on root or as seperate filesystem for syslinux and u-boot"
What we should have done at the time is changed our bootloader entries
to be prefixed with
/boot
. This means that the GRUB2 BLS supportwill Just Work.
For now, I'm making this option default to off out of a lot of
conservatism. I think in the future we should flip this on by default.