From: Peter Palfrader Date: Wed, 20 Jun 2012 08:12:56 +0000 (+0200) Subject: Fix hostname X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=26471f31cfa6b171e7b897ea1e53c3482a39cb34;p=mirror%2Fdsa-puppet.git 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 772c91bf0..fc0356e42 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 <