diff options
Diffstat (limited to 'experiments/02_20251129_image_from_packages')
3 files changed, 29 insertions, 0 deletions
diff --git a/experiments/02_20251129_image_from_packages/README b/experiments/02_20251129_image_from_packages/README new file mode 100644 index 0000000..3ebb000 --- /dev/null +++ b/experiments/02_20251129_image_from_packages/README @@ -0,0 +1,21 @@ +Goal: Boot system with files created by unpacking .deb files +Status: success + +During the test I tried to run dash shell as init to verify everything worked + +Packages were manually downloaded + +.deb files were unpacked using: +`mkdir $PKG; ar x $PKG.deb --output $PKG` + +and then content was extracted using: +`tar xf $PKG/content.tar.gz -C initramfs` + +Package list: + +dash_0.5.12-12_amd64.deb +gcc-14-base_14.2.0-19_amd64.deb +libc6_2.41-12_amd64.deb +libc-bin_2.41-12_amd64.deb +libgcc-s1_14.2.0-19_amd64.deb + diff --git a/experiments/02_20251129_image_from_packages/build_initrd.sh b/experiments/02_20251129_image_from_packages/build_initrd.sh new file mode 100755 index 0000000..0ebf208 --- /dev/null +++ b/experiments/02_20251129_image_from_packages/build_initrd.sh @@ -0,0 +1,5 @@ +#!/usr/bin/sh + +cd initramfs +find . | cpio -o -H newc | gzip > ../initrd.cpio.gz + diff --git a/experiments/02_20251129_image_from_packages/run_qemu.sh b/experiments/02_20251129_image_from_packages/run_qemu.sh new file mode 100755 index 0000000..211b281 --- /dev/null +++ b/experiments/02_20251129_image_from_packages/run_qemu.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +qemu-system-x86_64 -kernel /boot/vmlinuz-$(uname -r) -initrd initrd.cpio.gz -nographic -append "root=/dev/sda console=ttyS0" |
