Repository navigation
kernel-install: also try to find $BOOT by partition GUID - #26648
Conversation
When there is nothing set up on /boot, /boot/efi or /efi, try to find the $BOOT partition checking for the XBOOTLDR or ESP partition GUIDs. Prefer XBOOTLDR as per BLS. Fixes systemd#26644
74da33a to
41f39e2
Compare
|
Hmm, this is highly problematic, no? if I boot from my ssd and then plug in a fedora live usb stick, then there will be two ESPs around, the one from my ssd and the one from the live usb one, and this code might find the wrong one and bad things will happen Sorry, but this looks wrong to me. Too much automatic behaviour is bad, not good. If there's no clear indication we are looking at the right ESP we shouldn't use an ESP. Sorry, but I think this should be reverted. or what am I missing? |
|
I think we should make kernel-install call "bootctl -p" and "bootctl -x" to identify the right partitions. |
Hm, indeed... |
|
I'll look into using bootctl |
This reverts commit 41f39e2. From the post merge comment in systemd#26648: > Hmm, this is highly problematic, no? if I boot from my ssd and then > plug in a fedora live usb stick, then there will be two ESPs around, > the one from my ssd and the one from the live usb one, and this code > might find the wrong one and bad things will happen
This reverts commit 41f39e2. From the post merge comment in systemd#26648: > Hmm, this is highly problematic, no? if I boot from my ssd and then > plug in a fedora live usb stick, then there will be two ESPs around, > the one from my ssd and the one from the live usb one, and this code > might find the wrong one and bad things will happen
This reverts commit 41f39e2. From the post merge comment in systemd#26648: > Hmm, this is highly problematic, no? if I boot from my ssd and then > plug in a fedora live usb stick, then there will be two ESPs around, > the one from my ssd and the one from the live usb one, and this code > might find the wrong one and bad things will happen
This reverts commit 41f39e2. From the post merge comment in systemd#26648: > Hmm, this is highly problematic, no? if I boot from my ssd and then > plug in a fedora live usb stick, then there will be two ESPs around, > the one from my ssd and the one from the live usb one, and this code > might find the wrong one and bad things will happen
This reverts commit 41f39e2. From the post merge comment in systemd#26648: > Hmm, this is highly problematic, no? if I boot from my ssd and then > plug in a fedora live usb stick, then there will be two ESPs around, > the one from my ssd and the one from the live usb one, and this code > might find the wrong one and bad things will happen
When there is nothing set up on /boot, /boot/efi or /efi, try to find the
$BOOT partition checking for the XBOOTLDR or ESP partition GUIDs.
Prefer XBOOTLDR as per BLS.
Fixes #26644