mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 09:01:09 +00:00
lxc-busybox.in: check separately that /usr/lib64 exists
It's possible for only one of /lib64 and /usr/lib64 to exist, so adding both fstab entries can cause the busybox container to fail to start. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
12170cf8e7
commit
3d5a9debb5
@ -245,6 +245,11 @@ fi
|
|||||||
if [ -d "/lib64" ] && [ -d "$rootfs/lib64" ]; then
|
if [ -d "/lib64" ] && [ -d "$rootfs/lib64" ]; then
|
||||||
cat <<EOF >> $path/config
|
cat <<EOF >> $path/config
|
||||||
lxc.mount.entry=/lib64 $rootfs/lib64 none ro,bind 0 0
|
lxc.mount.entry=/lib64 $rootfs/lib64 none ro,bind 0 0
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "/usr/lib64" ] && [ -d "$rootfs/usr/lib64" ]; then
|
||||||
|
cat <<EOF >> $path/config
|
||||||
lxc.mount.entry=/usr/lib64 $rootfs/usr/lib64 none ro,bind 0 0
|
lxc.mount.entry=/usr/lib64 $rootfs/usr/lib64 none ro,bind 0 0
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user