diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2011-09-13 15:08:04 +0200 |
---|---|---|
committer | Daniel Lezcano <dlezcano@fr.ibm.com> | 2011-09-13 15:08:04 +0200 |
commit | 165015211fa9506b11ea1f4540d54b8a99a2f468 (patch) | |
tree | 4be111ac9bbd2f05d4a2dbc183a879d9f2588bc7 /templates | |
parent | only warn for inherited file descriptors (diff) | |
download | lxc-165015211fa9506b11ea1f4540d54b8a99a2f468.tar.gz lxc-165015211fa9506b11ea1f4540d54b8a99a2f468.tar.bz2 lxc-165015211fa9506b11ea1f4540d54b8a99a2f468.zip |
Set the utsname on the debian template
Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/lxc-debian.in | 5 |
1 files changed, 3 insertions, 2 deletions
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 <<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 |