From 2a43ef77b386aef949070ca1828a2019569fca9a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 4 Jun 2015 14:54:43 +0200 Subject: [PATCH] Write hostname to installed system (fix for bedb4090) Fixes #54 @ github Thanks: Sebastian Pipping for catching this issue --- grml-debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4