X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=45ee41b310c972742eace754a86ff567de7e05a8;hp=a0db99d0c744b01d0e0e114789bdc92a9ecb45e5;hb=0cdc0229bf22b76577247159cfbb3d72f465c7cb;hpb=d3c9bd094bf6ee7aee342b90090d04cc0a9f3095 diff --git a/grml-debootstrap b/grml-debootstrap index a0db99d..45ee41b 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -11,7 +11,7 @@ set -e # exit on any error # variables {{{ PN="$(basename $0)" -VERSION='0.24' +VERSION='0.25' MNTPOINT="/mnt/debootstrap.$$" # inside the chroot system locales might not be available, so use minimum: @@ -811,6 +811,8 @@ preparechroot() { # execute all scripts in /etc/debootstrap/scripts/ {{{ execute_scripts() { + # make sure we have $MNTPOINT available for our scripts + export MNTPOINT if [ -d "$_opt_scripts" ] || [ "$SCRIPTS" = 'yes' ] ; then [ -d "$_opt_scripts" ] && scripts="$_opt_scripts" || scripts="$CONFFILES/scripts/" for script in ${scripts}/* ; do