]> git.pld-linux.org Git - packages/lxc.git/blobdiff - lxc-pld.in.sh
Version: 1.1.1
[packages/lxc.git] / lxc-pld.in.sh
index 57132a58584a82063cdb4cbe5fc085d7067d2c2f..d8d30aba6101e19b0cb669ec84335d5ec8c97c5a 100755 (executable)
@@ -407,12 +407,15 @@ if [ "$(id -u)" != "0" ]; then
        exit 1
 fi
 
-if [ -z "$rootfs_path" ]; then
-       rootfs_path=$path/rootfs
-       # check for 'lxc.rootfs' passed in through default config by lxc-create
-       if grep -q '^lxc.rootfs' $path/config 2>/dev/null ; then
-               rootfs_path=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $path/config)
-       fi
+if [ -z "$rootfs" ]; then
+    rootfs_path=$path/rootfs
+    # check for 'lxc.rootfs' passed in through default config by lxc-create
+    # TODO: should be lxc.rootfs.mount used instead?
+    if grep -q '^lxc.rootfs' $path/config 2>/dev/null ; then
+            rootfs_path=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $path/config)
+    fi
+else
+    rootfs_path=$rootfs
 fi
 config_path=$default_path/$name
 cache=$cache_base/$release
This page took 0.036701 seconds and 4 git commands to generate.