From 165015211fa9506b11ea1f4540d54b8a99a2f468 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 13 Sep 2011 15:08:04 +0200 Subject: Set the utsname on the debian template Signed-off-by: Tzafrir Cohen Signed-off-by: Daniel Lezcano --- templates/lxc-debian.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 75a33a4..9d33113 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -186,12 +186,13 @@ copy_configuration() { path=$1 rootfs=$2 - name=$3 + hostname=$3 cat <> $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 -- cgit v1.2.3-65-gdbad