git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5436683
)
configure hostname as well on debian boxes
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 14:33:15 +0000
(15:33 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 14:33:15 +0000
(15:33 +0100)
lbuild-initvm.sh
patch
|
blob
|
history
diff --git
a/lbuild-initvm.sh
b/lbuild-initvm.sh
index
199cacf
..
de78466
100755
(executable)
--- a/
lbuild-initvm.sh
+++ b/
lbuild-initvm.sh
@@
-499,6
+499,11
@@
function debian_install () {
#virsh -c lxc:/// lxc-enter-namespace $lxc /bin/bash -c "apt-get -y install $DEBIAN_PREINSTALLED"
chroot $lxc_root apt-get update
chroot $lxc_root apt-get -y install $DEBIAN_PREINSTALLED
+ # configure hostname
+ cat <<EOF > ${lxc_root}/etc/hostname
+$GUEST_HOSTNAME
+EOF
+
}
function debian_configure () {