aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-06-08 19:20:05 +1200
committerArslaan Pathan <[email protected]>2026-06-08 19:20:05 +1200
commit18ee85b9efe6ab31db652e9a9f919603ca5edd4b (patch)
treebe6001831286c3de8e94e5b08f4b661a81cd92a8
parent0bc407c91f304edbccd75636de2f257043021893 (diff)
downloadyerbalinux-18ee85b9efe6ab31db652e9a9f919603ca5edd4b.tar.xz
yerbalinux-18ee85b9efe6ab31db652e9a9f919603ca5edd4b.zip
Try to fix initramfs
-rw-r--r--initramfs_init13
-rw-r--r--nix/linux_config3
2 files changed, 15 insertions, 1 deletions
diff --git a/initramfs_init b/initramfs_init
index 865a91d..ef327ce 100644
--- a/initramfs_init
+++ b/initramfs_init
@@ -1,20 +1,33 @@
#!/bin/sh
+echo "[yerba-initramfs/init] DEBUG: running ls on /"
+ls /
+
+mkdir -p /proc /sys /dev
+
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs none /dev
echo "[yerba-initramfs/init] Mounted /dev, /proc, /sys respectively"
+# wait for CD-ROM??
+sleep 1
+
mkdir -p /mnt/iso
+ls /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"
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
+mkdir -p /mnt/overlay
mount -t tmpfs tmpfs /mnt/overlay
mkdir -p /mnt/overlay/upper /mnt/overlay/work /mnt/overlay/merged
echo "[yerba-initramfs/init] Mounted tmpfs at /mnt/overlay and created upper, work & merged directories"
diff --git a/nix/linux_config b/nix/linux_config
index 5b2bf0f..aa9d8d8 100644
--- a/nix/linux_config
+++ b/nix/linux_config
@@ -4534,7 +4534,7 @@ CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS_FS=y
# CONFIG_FUSE_FS is not set
-# CONFIG_OVERLAY_FS is not set
+CONFIG_OVERLAY_FS=y
#
# Caches
@@ -4609,6 +4609,7 @@ CONFIG_MISC_FILESYSTEMS=y
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
CONFIG_SQUASHFS=y
+CONFIG_SQUASHFS_ZSTD=y
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set