Commit d696d21c by Frederic Crozat Committed by Serge Hallyn

shutdown fixes for openSUSE container

- mount /run on tmpfs outside container - replace /var/run bind mount on /run by a symlink Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent ba4c4259
...@@ -188,6 +188,10 @@ EOF ...@@ -188,6 +188,10 @@ EOF
# create mtab symlink # create mtab symlink
rm -f $cache/partial-$arch/etc/mtab rm -f $cache/partial-$arch/etc/mtab
ln -sf /proc/self/mounts $cache/partial-$arch/etc/mtab ln -sf /proc/self/mounts $cache/partial-$arch/etc/mtab
# ensure /var/run and /run are symlinked
rm -fr $cache/partial-$arch/var/run
ln -s -f ../run $cache/partial-$arch/var/run
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to download the rootfs, aborting." echo "Failed to download the rootfs, aborting."
return 1 return 1
...@@ -290,6 +294,7 @@ EOF ...@@ -290,6 +294,7 @@ EOF
cat <<EOF > $path/fstab cat <<EOF > $path/fstab
proc proc proc nodev,noexec,nosuid 0 0 proc proc proc nodev,noexec,nosuid 0 0
sysfs sys sysfs defaults 0 0 sysfs sys sysfs defaults 0 0
tmpfs run tmpfs mode=0755,nodev,nosuid 0 0
EOF EOF
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
......
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