Files
os-builder/export-iso/prerun.sh
T
2026-03-05 02:16:50 -08:00

10 lines
312 B
Bash
Executable File

#!/bin/bash -e
# For live ISO we don't need a disk image — just a plain working directory.
# Substages (apt cleanup, network config) run on_chroot against this directory.
rm -rf "${ROOTFS_DIR}"
mkdir -p "${ROOTFS_DIR}"
rsync -aHAXx --exclude /var/cache/apt/archives "${EXPORT_ROOTFS_DIR}/" "${ROOTFS_DIR}/"