]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
altlinux: Use relative paths and fix rootfs variable.
authorSerge Logvinov <serge.logvinov@gmail.com>
Sun, 8 Dec 2013 12:15:29 +0000 (16:15 +0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 9 Dec 2013 19:55:58 +0000 (14:55 -0500)
Change paths in fstab to be relative to the root and fix a wrong
rootfs_path value.

Signed-off-by: Serge Logvinov <serge.logvinov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-altlinux.in

index 559ba75e8ff164fd792b97292edb34931a84fce0..99d31e8e46338cda79ecf60cf882524cac706619 100644 (file)
@@ -296,8 +296,8 @@ lxc.cgroup.devices.allow = c 10:135 rwm
 EOF
 
     cat <<EOF > $config_path/fstab
-proc            $rootfs_path/proc         proc    nodev,noexec,nosuid 0 0
-sysfs           $rootfs_path/sys          sysfs defaults  0 0
+proc            proc         proc    nodev,noexec,nosuid 0 0
+sysfs           sys          sysfs   defaults  0 0
 EOF
 
     if [ $? -ne 0 ]; then
@@ -429,7 +429,7 @@ if [ -z "$rootfs_path" ]; then
     if grep -q '^lxc.rootfs' $path/config 2>/dev/null ; then
         rootfs_path=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $path/config)
     else
-        rootfs_path=$path/$name/rootfs
+        rootfs_path=$path/rootfs
     fi
 fi