#!/bin/sh mount -t proc none /proc mount -t sysfs none /sys mount -t devtmpfs none /dev 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