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.
23 lines
861 B
Desktop File
23 lines
861 B
Desktop File
[Unit]
|
|
Description=The fallback kernel's place on this machine's boot menu
|
|
# Module kernel, novox/hq ADR 0508 §9, issue 1841. Starting this unit reads which loader booted the machine and
|
|
# places the fallback kernel's boot entry (systemd-boot) or generates the menu again (GRUB); it fails, and says
|
|
# why, when there is no loader or the boot partition has no room. The kernel packages are declared after this
|
|
# unit, so the entry is in place before they are installed.
|
|
After=local-fs.target
|
|
Wants=local-fs.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=${dir:state}/boot-entries run
|
|
# It writes the boot partition, the pacman hook directory and its own state, and nothing else.
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/boot ${dir:state} /etc/pacman.d/hooks
|
|
ProtectHome=yes
|
|
PrivateNetwork=yes
|
|
NoNewPrivileges=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|