fix readme

This commit is contained in:
2023-03-16 22:14:41 +01:00
parent fc3f5f27b4
commit 29b63e1848

View File

@ -1,12 +1,12 @@
# Barnacle : The Rusty Stub Loader # Barnacle : The Rusty UKI Loader
## Example objcopy command ## Example objcopy command
cmdline has to be converted to utf-16 Using an mkinitcpio-like configuration
```sh ```sh
objcopy target/x86_64-unknown-uefi/release/barnacle.efi /boot/efi/arch.efi \ objcopy target/x86_64-unknown-uefi/release/barnacle.efi /boot/efi/arch.efi \
--add-section .linux=/boot/vmlinuz-linux --change-section-vma .linux=0x2000000 \ --add-section .linux=/boot/vmlinuz-linux --change-section-vma .linux=0x2000000 \
--add-section .initrd=/boot/initramfs-linux.img --change-section-vma .initrd=0x3000000 \ --add-section .initrd=/boot/initramfs-linux.img --change-section-vma .initrd=0x3000000 \
--add-section .cmdline=<(grep -a '^[^#]' "/etc/kernel/cmdline" | tr -s '\n' ' ' | iconv -t utf-16; printf '\n\0') --change-section-vma .cmdline=0x30000 --add-section .cmdline=<(grep -a '^[^#]' "/etc/kernel/cmdline" | tr -s '\n' ' '; printf '\n\0') --change-section-vma .cmdline=0x30000
``` ```