]> git.ipfire.org Git - ipfire-2.x.git/commit
make.sh: Fix build with kernels < 6.0.0
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Aug 2024 18:06:23 +0000 (18:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Aug 2024 18:06:23 +0000 (18:06 +0000)
commit8ea702f3f853c4c28a2885dafdcae2e737c0a49b
tree1fbf81e9e2f2307888c1274a204926adc921d6f5
parentf3c360cd6e8daf0431f684bfad9c55f64bad6c7f
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>
make.sh
tools/execute.sh