From a599f1153692beb202fdf5ad4b23e5b973bca920 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 5 Feb 2014 15:33:15 +0100 Subject: [PATCH] configure hostname as well on debian boxes --- lbuild-initvm.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index 199cacf4..de784660 100755 --- 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 < ${lxc_root}/etc/hostname +$GUEST_HOSTNAME +EOF + } function debian_configure () { -- 2.43.0