From: Stéphane Graber Date: Thu, 6 Sep 2012 14:59:57 +0000 (-0400) Subject: Pass the container name to copy_configuration in lxc-lenny X-Git-Tag: lxc-2.1.1~2561^2~25 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=435d40f7e3dc5b99a5fcbc459f79ba6b04238502;p=mirror_lxc.git Pass the container name to copy_configuration in lxc-lenny This fixes a case where lxc.utsname would be set empty as copy_configuration wasn't getting the container name. Signed-off-by: Rex Tsai (蔡志展) Acked-by: Stéphane Graber --- diff --git a/templates/lxc-lenny.in b/templates/lxc-lenny.in index cdc67bab8..de03f01d8 100644 --- a/templates/lxc-lenny.in +++ b/templates/lxc-lenny.in @@ -301,7 +301,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