Skip to content

Commit

Permalink
Do not unmount /proc/sys/fs/binfmt_misc before runnint the check scripts
Browse files Browse the repository at this point in the history
We did this to work around a bug in an old test script, but it
breaks building with newer kernels. So now detect the presense
of the broken check script and only unmount in that case.

Fixes bsc#1219137
  • Loading branch information
mlschroe committed Jan 24, 2024
1 parent b99daa5 commit 16c2566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,9 @@ TIME_POSTCHECKS=$SECONDS
if test -n "$RPMS" -a -d "$BUILD_ROOT/usr/lib/build/checks" ; then
# workaround for broken 13.1 check scripts which umount /proc
if test -n "$RUNNING_IN_VM" -a "$BUILD_ROOT" = / ; then
umount -n $BUILD_ROOT/proc/sys/fs/binfmt_misc 2>/dev/null
if grep umount "$BUILD_ROOT/usr/lib/build/checks/99-check-remove-rpms" >/dev/null 2>&1 ; then

This comment has been minimized.

Copy link
@jirislaby
umount -n $BUILD_ROOT/proc/sys/fs/binfmt_misc 2>/dev/null
fi
fi
# find package name
export PNAME=
Expand Down

0 comments on commit 16c2566

Please sign in to comment.