Prepare mountpoint before calling any dist-specific script

For example debian's 00_prepare.sh want to use it.
pull/1/head mm_d63d8ccc
Marek Marczykowski-Górecki 10 years ago
parent 80caa5ea2e
commit d63d8cccbd

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

Loading…
Cancel
Save