From: Michael Prokop Date: Thu, 4 Jun 2015 12:54:43 +0000 (+0200) Subject: Write hostname to installed system (fix for bedb4090) X-Git-Tag: v0.71~12 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=2a43ef77b386aef949070ca1828a2019569fca9a;ds=sidebyside Write hostname to installed system (fix for bedb4090) Fixes #54 @ github Thanks: Sebastian Pipping for catching this issue --- 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