From 26471f31cfa6b171e7b897ea1e53c3482a39cb34 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 20 Jun 2012 10:12:56 +0200 Subject: [PATCH] Fix hostname --- .../instance-debootstrap/hooks/00-dsa-configure-networking.erb | 2 ++ 1 file changed, 2 insertions(+) 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 <