feat: add efistub auto upate
This commit is contained in:
commit
b5aadeccf3
|
@ -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
|
|
@ -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/
|
||||||
|
|
Loading…
Reference in New Issue