From e636ea46c56ca11dd111e59405d92aa3ee81ad9f Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Wed, 3 Jun 2026 09:25:29 +1200 Subject: Make the ISO include the squashfs image and start working on the init script in initramfs --- initramfs_init | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'initramfs_init') diff --git a/initramfs_init b/initramfs_init index 04afb60..385ccb8 100644 --- a/initramfs_init +++ b/initramfs_init @@ -3,8 +3,20 @@ mount -t proc none /proc mount -t sysfs none /sys mount -t devtmpfs none /dev -mount -t tmpfs none /tmp -echo "Mounted /dev, /proc, /sys, and /tmp respectively" +echo "[yerba-initramfs/init] Mounted /dev, /proc, /sys respectively" +mkdir -p /mnt/iso + +mount /dev/sr0 /mnt/iso +echo "[yerba-initramfs/init] Mounted /dev/sr0 (ISO root)" + +mkdir -p /mnt/root +mount -t squashfs -o loop /mnt/iso/yerba/rootfs.squashfs /mnt/root + +echo "[yerba-initramfs/init] TODO: Make this actually mount OverlayFS and switch_root." +echo "[yerba-initramfs/init] You will see a message saying something bad has happened. Please ignore this." + +echo "[yerba-initramfs/init] Something very very bad has occurred (oh no.)" +echo "[yerba-initramfs/init] Dropping you to a BusyBox shell." exec /bin/sh -- cgit v1.2.3