fix iso export?

This commit is contained in:
2026-03-06 21:37:49 -08:00
parent 99e6532afe
commit 011b11a163
+4 -6
View File
@@ -93,12 +93,10 @@ 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
# Unmount all virtual filesystems left mounted by on_chroot calls.
# The empty directories (proc, sys, dev, tmp, run) are left in place so
# live-boot can bind-mount into them at boot.
unmount "${ROOTFS_DIR}"
mksquashfs "${ROOTFS_DIR}" "${ISO_TEMP_DIR}/live/filesystem.squashfs" \
-comp xz \