logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/make-initrd.git
commit: 6febe3794fec8133891a642b48e78eaeb750b9e2
parent eb6178be7fa7f91fc0860946d3db4c7fe378c604
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  1 May 2024 20:05:19 +0200

README: Update commands for multiarch

Diffstat:

MREADME.md4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -81,7 +81,7 @@ Meanwhile: ## Launching in QEMU ``` -$ qemu-system-x86_64 -enable-kvm -m 512 -kernel /boot/vmlinuz-6.6.21-gentoo -initrd /tmp/initramfs-tcc.cpio.xz -append 'init=/init console=ttyS0 panic=1' -nographic -no-reboot +$ qemu-system-x86_64 -enable-kvm -m 512 -kernel /boot/vmlinuz-6.6.21-gentoo -initrd /tmp/initramfs-tcc-x86_64.cpio.xz -append 'init=/init console=ttyS0 panic=1' -nographic -no-reboot ``` * Combination of `panic=1` and `-no-reboot` allows to exit+relaunch @@ -89,7 +89,7 @@ $ qemu-system-x86_64 -enable-kvm -m 512 -kernel /boot/vmlinuz-6.6.21-gentoo -ini ## Dev setup via bubblewrap ``` -$ ./make-root.sh && bwrap --clearenv --unshare-all --bind initramfs-tcc/ / --proc /proc --dev /dev --uid 0 /init +$ ./make-root.sh && bwrap --clearenv --unshare-all --bind initramfs-tcc-x86_64/ / --proc /proc --dev /dev --uid 0 /init ``` Useful as it allows to manipulate the environment externally (there's no `sed -i` nor editors yet…).