From ff855fc7d308aa9975803fb405c09a87c5e2bb94 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 29 Jan 2024 14:12:47 +0100 Subject: [PATCH] Check for 'umount proc' and not just 'umount' 'umount proc' has been part of a comment right above the umount line. --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index 859d4b265..42a9df59d 100755 --- a/build +++ b/build @@ -1914,7 +1914,7 @@ 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 - if grep umount "$BUILD_ROOT/usr/lib/build/checks/99-check-remove-rpms" >/dev/null 2>&1 ; then + if grep 'umount proc' "$BUILD_ROOT/usr/lib/build/checks/99-check-remove-rpms" >/dev/null 2>&1 ; then umount -n $BUILD_ROOT/proc/sys/fs/binfmt_misc 2>/dev/null fi fi