Public paste
Undefined
By: Guest | Date: Aug 19 2018 12:33 | Format: BASH | Expires: never | Size: 430 B | Hits: 1101

  1. #!/bin/bash
  2. objcopy \
  3.   --add-section .osrel=/etc/os-release --change-section-vma .osrel=0x20000 \
  4.   --add-section .cmdline=/proc/cmdline --change-section-vma .cmdline=0x30000 \
  5.   --add-section .linux=/boot/vmlinuz-linux --change-section-vma .linux=0x2000000 \
  6.   --add-section .initrd=/boot/initramfs-linux.img --change-section-vma .initrd=0x3000000 \
  7.   /usr/lib/systemd/boot/efi/linuxx64.efi.stub /boot/EFI/arch/bootx64.efi