projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix hostname
[mirror/dsa-puppet.git]
/
modules
/
ganeti2
/
templates
/
instance-debootstrap
/
hooks
/
00-dsa-configure-networking.erb
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
772c91b
..
fc0356e
100755
(executable)
--- 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 <<EOF
# /etc/resolv.conf