From: Peter Palfrader Date: Wed, 20 Jun 2012 08:12:56 +0000 (+0200) Subject: Fix hostname X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=26471f31cfa6b171e7b897ea1e53c3482a39cb34 Fix hostname --- diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb index 772c91bf..fc0356e4 100755 --- a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb +++ b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb @@ -55,6 +55,8 @@ EOF fi +fqdn=$(cat $TARGET/etc/hostname) +echo ${fqdn%%.*} > $TARGET/etc/hostname cat > $TARGET/etc/resolv.conf <