1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-25 05:57:28 +03:00
наб 641e2124de kernel-install: replace 00-entry-directory with K_I_LAYOUT in k-i
341890de866f2ee34919a47ce3fc6c8cd3c1924c made "bootctl install" create
ESP\MID, in preparation of cf73f650890b56a59bfb713c4c82b4e29daa7316 that
followed it and created 00-entry-directory.install to make ESP\MID\KVER
if ESP\MID existed ‒ this meant that "bootctl install" followed by
"kernel-install $(uname -r) /boot/vml*$(uname -r) /boot/ini*$(uname -r)"
actually installed the kernel correctly.

Later, 31e57550b552e113bd3d44355b237c41e42beb58 reverted the first
commit, meaning, that now running those two commands first installs
sd-boot, but then does nothing. Everything appears to work right,
nothing errors out, but no changes are actually done. To the untrained
eye (all of them), even running with -v appears to work:
all the hooks are run, as is depmod, but, again, nothing happens.

This is horrible. Nothing in either manpage suggests what to do
(nor should it, really), but the user is left with a bootloader that
appears fully funxional, since nothing suggests a failure in the output,
but with an unbootable machine, /no way to boot it/, even if they drop
to an EFI shell, since the boot bundle isn't present on the ESP,
and no real recourse even if they boot into a recovery system,
apart from installing like GRUB or whatever.

00- is purely instrumentation for 90-,
and separating one from the other has led to downstream dissatisfaxion
(indeed, the last mentioned commit cited cited exactly that as the
 reversion reason), while creating $ENTRY_DIR_ABS is only required
for bootloaders using the BLS, and shouldn't itself toggle anything.

To that end, introduce an /{e,l}/k/install.conf file that allows
overriding the detected layout, and detect it as "bls" if
$BOOT_ROOT/$MACHINE_ID ($ENTRY_DIR_ABS/..) exists, otherwise "other" ‒
if a user wishes to select a different bootloader,
like GRUB, they (or, indeed, the postinst script) can specify
layout=grub. This disables 90- and $ENTRY_DIR_ABS manipulation.
2021-12-17 14:57:56 +01:00
..
2021-06-30 23:33:00 +09:00
2021-10-07 22:13:12 +02:00
2021-08-11 09:34:45 +02:00
2021-10-20 22:20:18 +09:00
2021-08-18 13:36:14 +02:00
2020-12-16 17:21:48 +01:00
2021-02-25 14:55:17 +01:00
2021-01-04 11:01:17 +00:00
2021-06-30 23:33:00 +09:00
2021-01-04 11:01:17 +00:00
2021-11-30 13:54:27 +01:00
2021-08-20 11:09:47 +02:00
2021-12-13 09:25:31 +01:00
2021-04-19 23:16:02 +02:00
2021-12-08 11:46:33 +01:00
2021-10-20 22:20:18 +09:00
2021-11-30 12:30:07 +00:00
2021-12-10 07:27:43 +01:00
2021-11-08 10:15:23 +01:00
2020-11-09 13:23:58 +09:00
2020-12-16 17:21:48 +01:00