If a tinybsd build is interrupted and later started again, there's a possibility that directory's are still mounted with mount_nullfs. Running the remove_workdir function can than do severe damage to the build host, because it wil remove anything below $WORKDIR, thus also the mounted directory's like /lib. ..oops.. Fix: Apply the patch Patch attached with submission follows: How-To-Repeat: Interupt a tinybsd build at the time it is building the (optional) ports. Then start it again and the remove_workdir function will delete everything under $WORKDIR,
Hello, In the patch is an extra 'exit 11' that should not be there. Sorry for the inconvenience, the attached patch is the right one. -- Regards, Richard. /* Homo Sapiens non urinat in ventum */
Responsible Changed From-To: freebsd-bugs->remko I'll take it.
State Changed From-To: open->patched Patched in current will MFC in a few days
remko 2008-03-20 12:56:49 UTC FreeBSD src repository Modified files: tools/tools/tinybsd tinybsd Log: Alert properly when we have stale mounts left after interupting a tinybsd build. If we do not do this, we can accidentally remove critical files from directories like /lib (if mounted). PR: misc/121763 Submitted by: Richard Arends < richard at unixguru dot nl > MFC after: 3 days Revision Changes Path 1.9 +14 -6 src/tools/tools/tinybsd/tinybsd _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
remko 2008-03-24 10:39:34 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) tools/tools/tinybsd tinybsd Log: MFC rev 1.9 tinybsd Alert properly when we have stale mounts left after interupting a tinybsd build. If we do not do this, we can accidentally remove critical files from directories like /lib (if mounted). PR: misc/121763 Submitted by: Richard Arends < richard at unixguru dot nl > MFC after: 3 days Approved by: imp (mentor, implicit) Revision Changes Path 1.7.2.2 +14 -6 src/tools/tools/tinybsd/tinybsd _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: patched->closed MFC'ed to releng7, thanks for the submission richard!