From 878b701b6540fba5d00fa35415983b77800abcab Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 5 May 2013 11:27:54 -0300 Subject: [PATCH] Use debian release as hostname when creating debian boxes --- boxes/debian/lxc-template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/debian/lxc-template b/boxes/debian/lxc-template index 3b0f8fc..ea46245 100755 --- a/boxes/debian/lxc-template +++ b/boxes/debian/lxc-template @@ -16,7 +16,7 @@ configure_debian() { rootfs=$1 hostname=$2 - release=$3 + release=$2 # squeeze only has /dev/tty and /dev/tty0 by default, # therefore creating missing device nodes for tty1-4. @@ -322,7 +322,7 @@ if [ $? -ne 0 ]; then exit 1 fi -configure_debian $rootfs "vagrant-debian-${release}" $release +configure_debian $rootfs $release if [ $? -ne 0 ]; then echo "failed to configure debian $release for a container" exit 1