diff options
Diffstat (limited to 'initramfs_init')
| -rw-r--r-- | initramfs_init | 16 |
1 files changed, 14 insertions, 2 deletions
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 |
