kickstart-builder/add-iso.sh
2019-04-07 15:07:28 -07:00

14 lines
214 B
Bash
Executable File

#!/bin/bash -ex
ISO_PATH="$1"
ISO_NAME="$(basename $1 | sed -E 's/\.iso$//' )"
mkdir isos/$ISO_NAME
cd isos/$ISO_NAME
bsdtar xfp $ISO_PATH
chmod 644 isolinux/txt.cfg isolinux/isolinux.bin
chmod 755 preseed/ .