From 18ee85b9efe6ab31db652e9a9f919603ca5edd4b Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Mon, 8 Jun 2026 19:20:05 +1200 Subject: Try to fix initramfs --- initramfs_init | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'initramfs_init') diff --git a/initramfs_init b/initramfs_init index 865a91d..ef327ce 100644 --- a/initramfs_init +++ b/initramfs_init @@ -1,20 +1,33 @@ #!/bin/sh +echo "[yerba-initramfs/init] DEBUG: running ls on /" +ls / + +mkdir -p /proc /sys /dev + mount -t proc none /proc mount -t sysfs none /sys mount -t devtmpfs none /dev echo "[yerba-initramfs/init] Mounted /dev, /proc, /sys respectively" +# wait for CD-ROM?? +sleep 1 + mkdir -p /mnt/iso +ls /mnt/iso mount /dev/sr0 /mnt/iso echo "[yerba-initramfs/init] Mounted /dev/sr0 (ISO root)" +echo "[yerba-initramfs/init] DEBUG: running ls on /mnt/iso" mkdir -p /mnt/root mount -t squashfs -o loop /mnt/iso/yerba/rootfs.squashfs /mnt/root echo "[yerba-initramfs/init] Mounted squashfs at /mnt/root" +echo "[yerba-initramfs/init] DEBUG: running ls on /mnt/root" +ls /mnt/root +mkdir -p /mnt/overlay mount -t tmpfs tmpfs /mnt/overlay mkdir -p /mnt/overlay/upper /mnt/overlay/work /mnt/overlay/merged echo "[yerba-initramfs/init] Mounted tmpfs at /mnt/overlay and created upper, work & merged directories" -- cgit v1.2.3