X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=245f0d8b4118a4cafcbd2c8fd712cedd672afc4a;hp=69f2cf0509adf6804f71b419c49d88d1eca5a265;hb=6276d4b58208dc5623d4b27441ca9e5a75210413;hpb=8fb531a488c18a5f93ec415473182757c6f06444 diff --git a/grml-debootstrap b/grml-debootstrap index 69f2cf0..245f0d8 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -765,8 +765,10 @@ preparechroot() { # copy scripts that should be executed inside the chroot: _opt_chroot_scripts=${_opt_chroot_scripts:-$CONFFILES/chroot-scripts/} - [ -d $_opt_chroot_scripts -a "$CHROOT_SCRIPTS" = 'yes' ] && \ - cp -a $VERBOSE $_opt_chroot_scripts $MNTPOINT/etc/debootstrap/ + [ -d $_opt_chroot_scripts -a "$CHROOT_SCRIPTS" = 'yes' ] && { + mkdir -p $MNTPOINT/etc/debootstrap/chroot-scripts + cp -a $VERBOSE $_opt_chroot_scripts/* $MNTPOINT/etc/debootstrap/chroot-scripts/ + } # notice: do NOT use $CHROOT_VARIABLES inside chroot but statically file instead! cp $VERBOSE $CHROOT_VARIABLES $MNTPOINT/etc/debootstrap/variables