fix iso export?
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user