From 29b63e18482ce44408e81a670004aa1d0ae06a18 Mon Sep 17 00:00:00 2001 From: Altareos Date: Thu, 16 Mar 2023 22:14:41 +0100 Subject: [PATCH] fix readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7fe2ad9..f6d03dc 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# Barnacle : The Rusty Stub Loader +# Barnacle : The Rusty UKI Loader ## Example objcopy command -cmdline has to be converted to utf-16 +Using an mkinitcpio-like configuration ```sh 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 .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 ``` \ No newline at end of file