]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Pass the container name to copy_configuration in lxc-lenny
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 6 Sep 2012 14:59:57 +0000 (10:59 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 25 Oct 2012 08:29:44 +0000 (10:29 +0200)
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 (蔡志展) <rex.tsai@canonical.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-lenny.in

index cdc67bab8cdf2ee8a4e0c3de9842f65312da8463..de03f01d8df4fe579b210d18b874d14da4534a86 100644 (file)
@@ -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