Use debian release as hostname when creating debian boxes
This commit is contained in:
parent
53484d3caf
commit
878b701b65
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ configure_debian()
|
||||||
{
|
{
|
||||||
rootfs=$1
|
rootfs=$1
|
||||||
hostname=$2
|
hostname=$2
|
||||||
release=$3
|
release=$2
|
||||||
|
|
||||||
# squeeze only has /dev/tty and /dev/tty0 by default,
|
# squeeze only has /dev/tty and /dev/tty0 by default,
|
||||||
# therefore creating missing device nodes for tty1-4.
|
# therefore creating missing device nodes for tty1-4.
|
||||||
|
@ -322,7 +322,7 @@ if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
configure_debian $rootfs "vagrant-debian-${release}" $release
|
configure_debian $rootfs $release
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "failed to configure debian $release for a container"
|
echo "failed to configure debian $release for a container"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue