[Bug 500788] New: /proc/ umount fails if subdirectories get mounted
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.
http://bugzilla.novell.com/show_bug.cgi?id=500788 User mrueckert@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=500788#c1 Marcus Rückert <mrueckert@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrueckert@novell.com AssignedTo|bnc-team-screening@forge.pr |adrian@novell.com |ovo.novell.com | --- Comment #1 from Marcus Rückert <mrueckert@novell.com> 2009-05-04 15:40:05 MDT --- we fixed unmounting the binfmt_misc in abuild already. rudi should know more. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=500788 User michael_e_brown@dell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=500788#c2 --- Comment #2 from Michael Brown <michael_e_brown@dell.com> 2009-09-30 18:42:26 MDT --- I still see this problem in a fresh install. I sent a patch to fix this to opensuse-buildservice this week. http://lists.opensuse.org/opensuse-buildservice/2009-09/msg00144.html -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=500788 http://bugzilla.novell.com/show_bug.cgi?id=500788#c3 --- Comment #3 from Michael Brown <michael_e_brown@dell.com> 2010-01-14 19:38:21 UTC --- Has this actually been fixed? I dont see any binfmt_misc references in build anywhere. ADDITIONALLY: I have a couple KIWI enabled projects. When these KIWI projects get built on a worker, all subsequent jobs on that worker give: processing specfile /tmp/root_2/.build-srcdir/srvadmin-fsa.spec ... running changelog2spec --target rpm --file /tmp/root_2/.build-srcdir/srvadmin-fsa.spec init_buildsystem --clean --rpmlist /tmp/root_2/.build.rpmlist /tmp/root_2/.build-srcdir/srvadmin-fsa.spec build rpmli nt-Factory ... rm: cannot remove directory `/tmp/root_2/usr/src/packages/KIWIROOT-iso/dev': Device or resource busy rm: cannot remove directory `/tmp/root_2/usr/src/packages/KIWIROOT-iso/var/cache/zypp': Device or resource busy rm: cannot remove directory `/tmp/root_2/usr/src/packages/KIWIROOT-iso/var/cache/kiwi': Device or resource busy rm: cannot remove directory `/tmp/root_2/usr/src/packages/KIWIROOT-iso/base-system/usr/src/packages/SOURCES/repos/SUS E:SLE-11.0/standard': Device or resource busy rm: cannot remove directory `/tmp/root_2/usr/src/packages/KIWIROOT-iso/base-system/usr/src/packages/SOURCES/repos/hom e:praveen_paladugu/standard': Device or resource busy -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=500788 http://bugzilla.novell.com/show_bug.cgi?id=500788#c4 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Ludwig Nussel <lnussel@novell.com> 2010-01-15 15:12:11 CET --- sorry, overlooked your mail and didn't know about this bug in bugzilla. I've actually commited the change few days ago. But now after reading the initial comment again I see that you use a custom rpm that just does stuff in %post it shouldn't do. It should not start or mount things in %post. Especially not if $YAST_IS_RUNNING = "instsys". Anyways, stupid workaround already in git. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=500788 http://bugzilla.novell.com/show_bug.cgi?id=500788#c5 --- Comment #5 from Michael Brown <michael_e_brown@dell.com> 2010-01-15 15:21:49 UTC --- Custom rpm? The official Sun Java JRE/JDK RPMs are the ones doing this, so there isnt really anything I can do about those. I've checked git and see the checkins. Thanks. -- 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.
participants (1)
-
bugzilla_noreply@novell.com