]> git.proxmox.com Git - mirror_lxc.git/blobdiff - templates/lxc-opensuse.in
confile: lxc.rootfs --> lxc.rootfs.path
[mirror_lxc.git] / templates / lxc-opensuse.in
index 380b3c0282a0cf1e32898ae2649988a7eb059059..25b59edad30fd999027c430af08152b675a5f348 100644 (file)
@@ -303,8 +303,8 @@ copy_configuration()
     rootfs=$2
     name=$3
 
-    grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "
-lxc.rootfs = $rootfs_path
+    grep -q "^lxc.rootfs.path" $path/config 2>/dev/null || echo "
+lxc.rootfs.path = $rootfs_path
 " >> $path/config
 
     # The following code is to create static MAC addresses for each
@@ -504,8 +504,8 @@ fi
 # detect rootfs
 config="$path/config"
 if [ -z "$rootfs" ]; then
-    if grep -q '^lxc.rootfs' $config 2>/dev/null ; then
-        rootfs=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $config)
+    if grep -q '^lxc.rootfs.path' $config 2>/dev/null ; then
+        rootfs=$(awk -F= '/^lxc.rootfs.path =/{ print $2 }' $config)
     else
         rootfs=$path/rootfs
     fi