diff options
| author | wrzosik <mia@miangie.dev> | 2025-11-30 15:21:08 +0100 |
|---|---|---|
| committer | wrzosik <mia@miangie.dev> | 2025-11-30 15:21:08 +0100 |
| commit | 73f39a96c8786cf9491c06e8ba60edd63863dac1 (patch) | |
| tree | 8dd9c6ad689872d88c6b1fcd5cc38cfe73fe575a /experiments/03_20251130_leaving_initramfs/README | |
| parent | 4859194c62140a947a0d60bd3bc557c181139baf (diff) | |
experiment: Leave initramfs
Added experiment on booting past initramfs. It uses Makefile to build initramfs.
Diffstat (limited to 'experiments/03_20251130_leaving_initramfs/README')
| -rw-r--r-- | experiments/03_20251130_leaving_initramfs/README | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/experiments/03_20251130_leaving_initramfs/README b/experiments/03_20251130_leaving_initramfs/README new file mode 100644 index 0000000..a458ac2 --- /dev/null +++ b/experiments/03_20251130_leaving_initramfs/README @@ -0,0 +1,32 @@ +Goal: boot into initramfs and switch to real system +Status: success + +Added busybox to the mix, incredibely useful here + +init script will create new_root, mount tmpfs there and copy all the binaries +from initramfs to it so we have something to work with. It'll also mount /proc, +/dev and /sys. After that's done it'll switch root and run busybox shell as new +PID 1. + +there's a /new_root/cake file created by the script to confirm that we indeed +changed the root + +Useful resources: +- https://github.com/torvalds/linux/blob/v4.17/Documentation/filesystems/ramfs-rootfs-initramfs.txt +- https://www.kernel.org/doc/html/latest/admin-guide/initrd.html (obsolete but useful) + +Package list: +busybox-static_1.37.0-7_amd64.deb +dash_0.5.12-12_amd64.deb +gcc-14-base_14.2.0-19_amd64.deb +libblkid1_2.41.2-4_amd64.deb +libc6_2.41-12_amd64.deb +libc-bin_2.41-12_amd64.deb +libgcc-s1_14.2.0-19_amd64.deb +libmount1_2.41.2-4_amd64.deb +libpcre2-8-0_10.47-2_amd64.deb +libselinux1_3.9-4_amd64.deb +libsmartcols1_2.41.2-4_amd64.deb +mount_2.41.2-4_amd64.deb +util-linux_2.41.2-4_amd64.deb + |
