ADR 0508 §9 and §10: systemd-boot gets an entry from the booted command line, GRUB a regenerated menu only when its kernels change, a found kernel-copying hook is taken over, a full boot partition fails loudly.
14 lines
464 B
Plaintext
14 lines
464 B
Plaintext
# Module kernel, novox/hq ADR 0508 §9, issue 1841. After a kernel image is installed, upgraded or removed, the
|
|
# fallback kernel's boot entry (or the GRUB menu) is placed again. Written by the mesh; change the module.
|
|
[Trigger]
|
|
Operation = Install
|
|
Operation = Upgrade
|
|
Operation = Remove
|
|
Type = Path
|
|
Target = usr/lib/modules/*/vmlinuz
|
|
|
|
[Action]
|
|
Description = Placing the fallback kernel on the boot menu
|
|
When = PostTransaction
|
|
Exec = ${dir:state}/boot-entries run
|