[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