Fix hostname
[mirror/dsa-puppet.git] / modules / ganeti2 / templates / instance-debootstrap / hooks / 00-dsa-configure-networking.erb
index 772c91b..fc0356e 100755 (executable)
@@ -55,6 +55,8 @@ EOF
 
 fi
 
 
 fi
 
+fqdn=$(cat $TARGET/etc/hostname)
+echo ${fqdn%%.*} > $TARGET/etc/hostname
 
 cat > $TARGET/etc/resolv.conf <<EOF
 # /etc/resolv.conf
 
 cat > $TARGET/etc/resolv.conf <<EOF
 # /etc/resolv.conf