This commit is contained in:
2026-03-06 15:00:46 -08:00
parent dc8792f39f
commit 99e6532afe
+8 -6
View File
@@ -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"