summarylogtreecommitdiffstats
path: root/systemd-efi.hook
diff options
context:
space:
mode:
authorLuca Stefani2019-09-22 15:23:25 +0200
committerLuca Stefani2019-09-22 15:23:25 +0200
commitfc73117c77d33d4c605cb6ff946fb33fe840b6d1 (patch)
treeab7d6cbe5e875620a983b54e54865b82c3b9ae85 /systemd-efi.hook
downloadaur-fc73117c77d33d4c605cb6ff946fb33fe840b6d1.tar.gz
Initial commit
Diffstat (limited to 'systemd-efi.hook')
-rw-r--r--systemd-efi.hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/systemd-efi.hook b/systemd-efi.hook
new file mode 100644
index 000000000000..457803978199
--- /dev/null
+++ b/systemd-efi.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Type = Package
+Operation = Upgrade
+Target = linux
+
+[Action]
+Description = Generating linux.efi...
+When = PostTransaction
+Exec = /bin/sh -c '/usr/bin/mkdir -p "/boot/EFI/Linux"; /usr/bin/objcopy --add-section .osrel="/usr/lib/os-release" --change-section-vma .osrel=0x20000 --add-section .cmdline="/boot/kernel-command-line" --change-section-vma .cmdline=0x30000 --add-section .linux="/boot/vmlinuz-linux" --change-section-vma .linux=0x40000 --add-section .initrd="/boot/initramfs-linux.img" --change-section-vma .initrd=0x3000000 "/usr/lib/systemd/boot/efi/linuxx64.efi.stub" "/boot/EFI/Linux/linux.efi"'