Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/etc/initramfs/post-update.d/update-efi-loader
- #!/bin/sh
- cat /etc/kernel-cmdline > /tmp/cmdline
- objcopy \
- --add-section .osrel=/etc/os-release --change-section-vma .osrel=0x20000 \
- --add-section .cmdline=/tmp/cmdline --change-section-vma .cmdline=0x30000 \
- --add-section .linux=/boot/vmlinuz-$(uname -r) --change-section-vma .linux=0x2000000 \
- --add-section .initrd=/boot/initrd.img-$(uname -r) --change-section-vma .initrd=0x3000000 \
- /usr/lib/systemd/boot/efi/linuxx64.efi.stub /tmp/ubuntu.efi
- cp /tmp/ubuntu.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement