mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
make.sh: Fix build with kernels < 6.0.0
unshare(8) seems to fail with kernels older than 6.0.0 when mounting the /proc filesystem in the inner namespace. This seems to be an bug where unshare does not even try to mount the /proc filesystem but tries to make its mount propagation private. This is now solved in that way that we will use unshare on newer kernels but will fall back on manually mounting the /proc filesystem once we have entered the chroot environment. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
# This is a helper script that is called after we have created the new
|
||||
# namespaces to perform further setup. This will be executed on the host.
|
||||
|
||||
# Mount /proc if it has not been mounted, yet
|
||||
if ! mountpoint /proc; then
|
||||
mount -t procfs none /proc -o nosuid,noexec,nodev
|
||||
fi
|
||||
|
||||
# Bring up the loopback interface
|
||||
ip link set lo up &>/dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user