Commit 16501521 by Tzafrir Cohen Committed by Daniel Lezcano

Set the utsname on the debian template

parent 92c7f629
......@@ -186,12 +186,13 @@ copy_configuration()
{
path=$1
rootfs=$2
name=$3
hostname=$3
cat <<EOF >> $path/config
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = $rootfs
lxc.utsname = $hostname
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
......@@ -307,7 +308,7 @@ if [ $? -ne 0 ]; then
exit 1
fi
copy_configuration $path $rootfs
copy_configuration $path $rootfs $name
if [ $? -ne 0 ]; then
echo "failed write configuration file"
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment