http://bugzilla.novell.com/show_bug.cgi?id=500788 Summary: /proc/ umount fails if subdirectories get mounted Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: michael_e_brown@dell.com QAContact: adrian@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10 In our private obs instance, I added sun java jdk to be able to build some java-dependent software. The jdk rpm ends up mounting /proc/sys/fs/binfmt_misc as part of its %post. This causes the build to fail to unmount /proc. subsequent builds then run with a mounted /proc and try to 'rm -rf ...' to clean the buildroot and wind up trying to remove all of /proc (which thankfully fails, but leaves a bunch of error messages in the log.) As a workaround to this issue, I've added: umount -n $BUILD_ROOT/proc/sys/fs/binfmt_misc 2> /dev/null || true to all of the instances in build and init_buildsystem just before the unmount of /proc. The best way to fix this issue would be to unshare() the namespace prior to mounting anything. This would mean everything gets automatically cleaned up on process exit. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.