From: Thierry Parmentelat Date: Wed, 5 Feb 2014 15:17:30 +0000 (+0100) Subject: build VMs have a nicer hostname (dates have dots in them that get interpreted as... X-Git-Tag: before_libvirt_121~1 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=fb999e7f81afd12f010e83dee3550270663fcd96 build VMs have a nicer hostname (dates have dots in them that get interpreted as domain...) --- diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index de784660..34c9115d 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -921,7 +921,7 @@ function main () { if [ -n "$BUILD_MODE" ] ; then # we can now set GUEST_HOSTNAME safely - [ -z "$GUEST_HOSTNAME" ] && GUEST_HOSTNAME=$lxc + [ -z "$GUEST_HOSTNAME" ] && GUEST_HOSTNAME=$(echo $lxc | sed -e 's,\.,-,g') else # as this command can be used in other contexts, not specifying # a repo is considered a warning