aboutsummaryrefslogtreecommitdiff
path: root/initramfs_init
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs_init')
-rw-r--r--initramfs_init13
1 files changed, 13 insertions, 0 deletions
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"