diff options
Diffstat (limited to 'systemd-efi.hook')
-rw-r--r-- | systemd-efi.hook | 9 |
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"' |