configure hostname as well on debian boxes
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 14:33:15 +0000 (15:33 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 14:33:15 +0000 (15:33 +0100)
lbuild-initvm.sh

index 199cacf..de78466 100755 (executable)
@@ -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 () {