From 99e6532afe5744fc76a401f11a46a193863a724f Mon Sep 17 00:00:00 2001 From: oxmc7769 Date: Fri, 6 Mar 2026 15:00:46 -0800 Subject: [PATCH] fixes --- exports/iso/04-finalise/01-run.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/exports/iso/04-finalise/01-run.sh b/exports/iso/04-finalise/01-run.sh index 4a5f05f..a654a3c 100755 --- a/exports/iso/04-finalise/01-run.sh +++ b/exports/iso/04-finalise/01-run.sh @@ -93,15 +93,17 @@ GRUBEOF # Step 5: Create squashfs of the rootfs. # live-boot will find this at /live/filesystem.squashfs on the boot medium. +# Ensure virtual fs mount points exist as empty dirs — live-boot bind-mounts into them. +# Do NOT exclude them entirely or the directories won't exist in the squashfs. +for dir in proc sys dev tmp run; do + rm -rf "${ROOTFS_DIR:?}/${dir}" + mkdir -p "${ROOTFS_DIR}/${dir}" +done + mksquashfs "${ROOTFS_DIR}" "${ISO_TEMP_DIR}/live/filesystem.squashfs" \ -comp xz \ -noappend \ - -e boot/efi \ - -e proc \ - -e sys \ - -e dev \ - -e tmp \ - -e run + -e boot/efi # Write filesystem metadata used by installers and live tools du -sx --block-size=1 "${ROOTFS_DIR}" | cut -f1 > "${ISO_TEMP_DIR}/live/filesystem.size"