feat: add efistub auto upate

This commit is contained in:
Adam Douglas 2020-04-10 15:37:55 -06:00
commit b5aadeccf3
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=Copy EFISTUB Kernel to UEFISYS Partition
[Path]
PathChanged=/boot/initramfs-linux-fallback.img
[Install]
WantedBy=multi-user.target
WantedBy=system-update.target

View File

@ -0,0 +1,14 @@
[Unit]
Description=Copy EFISTUB Kernel to UEFISYS Partition
[Service]
Type=oneshot
ExecStart=/usr/bin/cp -f /boot/vmlinuz-linux /boot/EFI/arch/vmlinuz-linux
ExecStart=/usr/bin/cp -f /boot/initramfs-linux.img /boot/EFI/arch/initramfs-linux.img
ExecStart=/usr/bin/cp -f /boot/initramfs-linux-fallback.img /boot/EFI/arch/initramfs-linux-fallback.img
ExecStart=/usr/bin/mount -U 46C0-D76E /boot/WIN/
ExecStart=/usr/bin/cp -f /boot/vmlinuz-linux /boot/WIN/EFI/arch/vmlinuz-linux
ExecStart=/usr/bin/cp -f /boot/initramfs-linux.img /boot/WIN/EFI/arch/initramfs-linux.img
ExecStart=/usr/bin/cp -f /boot/initramfs-linux-fallback.img /boot/WIN/EFI/arch/initramfs-linux-fallback.img
ExecStart=/usr/bin/umount /boot/WIN/