summarylogtreecommitdiffstats
path: root/systemd-efi.hook
blob: c44b64624e71cf498c0095b9d209d31efd424b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/initramfs-linux.img
Target = boot/kernel-command-line
Target = boot/vmlinuz-linux
Target = usr/lib/systemd/boot/efi/linuxx64.efi.stub

[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"'