X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=b1586453daa85bb31650751f6688e300bac30dcb;hp=5b5ad449315aed17dff8082107919276c6231bc8;hb=4b7bcd8bb312afbc7eb0be80f72c1cc99566a56b;hpb=6b450797112e7067e3a2090e482e49757b207f1d diff --git a/grml-debootstrap b/grml-debootstrap index 5b5ad44..b158645 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1530,8 +1530,9 @@ execute_pre_scripts() { # execute all scripts in /etc/debootstrap/post-scripts/ {{{ execute_post_scripts() { - # make sure we have $MNTPOINT available for our scripts + # make sure we have $MNTPOINT and HOSTNAME available for our scripts export MNTPOINT + export TARGET_HOSTNAME=$HOSTNAME if [ -d "$_opt_scripts" ] || [ "$SCRIPTS" = 'yes' ] ; then # legacy support for /etc/debootstrap/scripts/