diff options
| author | Arslaan Pathan <[email protected]> | 2026-06-03 09:25:29 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-06-03 09:25:29 +1200 |
| commit | e636ea46c56ca11dd111e59405d92aa3ee81ad9f (patch) | |
| tree | 5fe3d6749bbedb7c9969326c45d88e5e94a71d4e /initramfs_init | |
| parent | ad38e594b1c2378b09177f214be8f1e8275b686a (diff) | |
| download | yerbalinux-e636ea46c56ca11dd111e59405d92aa3ee81ad9f.tar.xz yerbalinux-e636ea46c56ca11dd111e59405d92aa3ee81ad9f.zip | |
Make the ISO include the squashfs image and start working on the init script in initramfs
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 |
