Prepare mountpoint before calling any dist-specific script

For example debian's 00_prepare.sh want to use it.
This commit is contained in:
Marek Marczykowski-Górecki 2014-11-06 02:11:07 +01:00
parent 80caa5ea2e
commit d63d8cccbd

View File

@ -32,13 +32,13 @@ fi
# Prepare for mount
# ------------------------------------------------------------------------------
echo "-> Preparing instalation of $DIST template..."
export INSTALLDIR="$(readlink -m mnt)"
mkdir -p "$INSTALLDIR"
"$SCRIPTSDIR/00_prepare.sh"
# ------------------------------------------------------------------------------
# Mount image and install core OS
# ------------------------------------------------------------------------------
export INSTALLDIR="$(readlink -m mnt)"
mkdir -p "$INSTALLDIR"
if [ -f "$IMG" ]; then
echo "-> Image file already exists, assuming *update*..."