Skip to content

Conversation

@dbnicholson
Copy link
Member

If LoaderDevicePartUUID isn't set because the boot loader doesn't support it,
assume that the ESP partition on the root disk is the booted ESP. This is a
weaker guarantee but likely the same for the vast majority of systems. Allowing
the ESP automount in this case helps break a dependency loop. Existing boot
loaders can be changed to set LoaderDevicePartUUID, but they can't be delivered
to existing systems if the ESP is not mounted.

Upstream: systemd/systemd#26430

https://phabricator.endlessm.com/T29930

This is on top of #163. I sent this upstream, but I doubt it's going to get merged. For Endless I think this makes sense to bootstrap updating EFI programs so that eventually we can have a grub that supports LoaderDevicePartUUID.

@wjt pointed out that this probably won't work right on dual boot systems. I think that should be managed separately. Possibly we can add in a custom generator for that scenario.

medhefgo and others added 2 commits February 16, 2023 08:28
Note that -O0 is deliberately filtered out as we have to compile with at
least -O1 due to #24202.

Fixes: #24323
(cherry picked from commit 7aa4762)
If LoaderDevicePartUUID isn't set because the boot loader doesn't support it,
assume that the ESP partition on the root disk is the booted ESP. This is a
weaker guarantee but likely the same for the vast majority of systems. Allowing
the ESP automount in this case helps break a dependency loop. Existing boot
loaders can be changed to set LoaderDevicePartUUID, but they can't be delivered
to existing systems if the ESP is not mounted.

Upstream: systemd/systemd#26430

https://phabricator.endlessm.com/T29930
@dbnicholson dbnicholson requested a review from jprvita February 21, 2023 15:32
@jprvita jprvita merged commit d4832bd into master Feb 28, 2023
@jprvita jprvita deleted the T29930-efi-automount-no-bli branch February 28, 2023 20:55
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.

4 participants