Commit Graph

3 Commits

Author SHA1 Message Date
Michael Tremer
0a110703ca Revert "make.sh: Fix build with kernels < 6.0.0"
This reverts commit 8ea702f3f8.

This commit seems to introduce many more regressions when building
packages which I cannot easily reproduce.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-20 08:39:24 +00:00
Michael Tremer
8ea702f3f8 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>
2024-08-19 18:06:23 +00:00
Michael Tremer
f5160566b2 make.sh: Bring up the loopback device in the new namespace
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-06 16:17:39 +00:00