pve-kernel-meta/proxmox-boot/proxmox-boot-cleanup.service
Stoiko Ivanov d5a182ad1d proxmox-boot: add --next-boot option kernel pin command
by setting the desired version in a dedicated file, which is used
by the systemd service as condition for removing it and refreshing
upon reboot.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Tested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-22 13:31:31 +01:00

14 lines
327 B
Desktop File

[Unit]
Description=Clean up bootloader next-boot setting
After=systemd-remount-fs.service
ConditionPathExists=/etc/kernel/next-boot-pin
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/proxmox-boot-tool kernel unpin --next-boot
ExecStart=/usr/sbin/proxmox-boot-tool refresh
[Install]
WantedBy=multi-user.target