23 lines
465 B
Bash
Executable File
23 lines
465 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# make sure this was run as root, so we don't get asked for
|
|
# passwords during execution
|
|
if [ $UID -ne 0 ] ; then
|
|
echo "Need to be root; trying sudo"
|
|
exec sudo nice env BUILD_CONFIG=$BUILD_CONFIG $0 "$@"
|
|
fi
|
|
|
|
. config || exit 0
|
|
|
|
set -e
|
|
|
|
./cleanup.sh
|
|
for d in ${ORIG} ${OUTPUT} ${DISK} ; do
|
|
mkdir -p $(dirname $d)
|
|
chown ${NONPRIV_UID} $(dirname $d)
|
|
done
|
|
./extractiso.sh
|
|
./customize.sh
|
|
./buildiso.sh
|
|
chown ${NONPRIV_UID} ${ORIG} ${OUTPUT}
|