diff options
| author | Arslaan Pathan <[email protected]> | 2026-06-10 20:15:40 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-06-10 20:15:40 +1200 |
| commit | 0688d4b8a9e1e53c8328f43d47b7210f31799818 (patch) | |
| tree | 5f5c3e1ec4c44ee231fa1943c61ebf8e7aad963f /initramfs_init | |
| parent | 38f64c4d382d9080b4b0c9b934be8b5dbc997547 (diff) | |
| download | yerbalinux-0688d4b8a9e1e53c8328f43d47b7210f31799818.tar.xz yerbalinux-0688d4b8a9e1e53c8328f43d47b7210f31799818.zip | |
See if this works?
Diffstat (limited to 'initramfs_init')
| -rw-r--r-- | initramfs_init | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/initramfs_init b/initramfs_init index bb180d1..0363b46 100644 --- a/initramfs_init +++ b/initramfs_init @@ -1,7 +1,7 @@ #!/bin/sh -echo "[yerba-initramfs/init] DEBUG: running ls on /" -ls / +echo "[yerba-initramfs/init] DEBUG: running ls -la on /" +ls -la / mkdir -p /proc /sys /dev @@ -15,17 +15,17 @@ echo "[yerba-initramfs/init] Mounted /dev, /proc, /sys respectively" sleep 1 mkdir -p /mnt/iso -ls /mnt/iso +ls -la /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" +echo "[yerba-initramfs/init] DEBUG: running ls -la 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 +echo "[yerba-initramfs/init] DEBUG: running ls -la on /mnt/root" +ls -la /mnt/root mkdir -p /mnt/overlay mount -t tmpfs tmpfs /mnt/overlay @@ -46,11 +46,11 @@ if [ ! -c /dev/tty0 ]; then mknod -m 620 /dev/tty0 c 4 0 fi -echo "[yerba-initramfs/init] DEBUG: running ls on /mnt/overlay/merged" -ls /mnt/overlay/merged +echo "[yerba-initramfs/init] DEBUG: running ls -la on /mnt/overlay/merged" +ls -la /mnt/overlay/merged echo "[yerba-initramfs/init] Switching to overlay root..." -exec switch_root /mnt/overlay/merged /init +exec switch_root /mnt/overlay/merged /usr/bin/runit-init echo "[yerba-initramfs/init] switch_root failed, dropping to shell" exec /bin/sh |
