X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=b013ec209acb42c3d0c00f0e9cb18192aea5a651;hp=2a6a6e90d88babc5122b6b012d05db22b8fb5447;hb=2a43ef77b386aef949070ca1828a2019569fca9a;hpb=598b19a85591ce0a059fdb092577aa2f6db99281 diff --git a/grml-debootstrap b/grml-debootstrap index 2a6a6e9..b013ec2 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1427,7 +1427,7 @@ iface eth0 inet dhcp # execute all scripts in /etc/debootstrap/pre-scripts/ {{{ execute_pre_scripts() { # make sure hostname is set even before chroot-script get executed - echo "$HOSTNAME" > /etc/hostname + echo "$HOSTNAME" > "$MNTPOINT"/etc/hostname # make sure we have $MNTPOINT available for our scripts export MNTPOINT