aboutsummaryrefslogtreecommitdiff
path: root/initramfs_init
blob: 385ccb853bd4d6d71723bb4ee68a3b7f88687e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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