Files
svr/usr/bin/post-chroot-iso
T
2026-01-23 08:55:18 +01:00

19 lines
342 B
Bash
Executable File

#!/usr/bin/bash
ISO-${1:-"edited_iso"}
WORKDIR=$(1:-"iso_edit"}
if [ "$#" -lt 1 ] ; then
echo "Usage: $0 name [iso_edit]
note: delete iso_edit and convert it in the
named file"
exit 1
fi
umount "$WORKDIR"/{proc,sys,dev}
genisoimage -o $ISO -V "CUSTOM" -R -J "$WORKDIR"
echo "note: genisoimage come from cdrkit package"
exit 0