Commit 44b430e2 by Serge Logvinov Committed by Stéphane Graber

altlinux: Use relative paths and fix rootfs variable.

Change paths in fstab to be relative to the root and fix a wrong rootfs_path value. Signed-off-by: 's avatarSerge Logvinov <serge.logvinov@gmail.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 4ed0b622
...@@ -296,8 +296,8 @@ lxc.cgroup.devices.allow = c 10:135 rwm ...@@ -296,8 +296,8 @@ lxc.cgroup.devices.allow = c 10:135 rwm
EOF EOF
cat <<EOF > $config_path/fstab cat <<EOF > $config_path/fstab
proc $rootfs_path/proc proc nodev,noexec,nosuid 0 0 proc proc proc nodev,noexec,nosuid 0 0
sysfs $rootfs_path/sys sysfs defaults 0 0 sysfs sys sysfs defaults 0 0
EOF EOF
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
...@@ -429,7 +429,7 @@ if [ -z "$rootfs_path" ]; then ...@@ -429,7 +429,7 @@ if [ -z "$rootfs_path" ]; then
if grep -q '^lxc.rootfs' $path/config 2>/dev/null ; then if grep -q '^lxc.rootfs' $path/config 2>/dev/null ; then
rootfs_path=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $path/config) rootfs_path=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $path/config)
else else
rootfs_path=$path/$name/rootfs rootfs_path=$path/rootfs
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment