mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-02 23:04:52 +00:00
shutdown fixes for openSUSE container
- mount /run on tmpfs outside container - replace /var/run bind mount on /run by a symlink Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
ba4c425973
commit
d696d21c2a
@ -188,6 +188,10 @@ EOF
|
||||
# create mtab symlink
|
||||
rm -f $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
|
||||
echo "Failed to download the rootfs, aborting."
|
||||
return 1
|
||||
@ -290,6 +294,7 @@ EOF
|
||||
cat <<EOF > $path/fstab
|
||||
proc proc proc nodev,noexec,nosuid 0 0
|
||||
sysfs sys sysfs defaults 0 0
|
||||
tmpfs run tmpfs mode=0755,nodev,nosuid 0 0
|
||||
EOF
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user