Skip to content

Instantly share code, notes, and snippets.

@Ram-Z
Created July 1, 2016 13:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ram-Z/911da2c05acde45795e9158aa6456bb8 to your computer and use it in GitHub Desktop.
Save Ram-Z/911da2c05acde45795e9158aa6456bb8 to your computer and use it in GitHub Desktop.
[Unit] Description=Copy EFISTUB Kernel to UEFISYS Partition
[Path]
PathChanged=/boot/initramfs-linux-fallback.img
[Install]
WantedBy=multi-user.target
WantedBy=system-update.target
[Unit]
Description=Copy EFISTUB Kernel to UEFISYS Partition
[Service]
Type=oneshot
ExecStart=/usr/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-linux
ExecStart=/usr/bin/cp -f /boot/initramfs-linux.img /boot/efi/EFI/arch/initramfs-linux.img
ExecStart=/usr/bin/cp -f /boot/initramfs-linux-fallback.img /boot/efi/EFI/arch/initramfs-linux-fallback.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment