[PC-BSD Testing] portjail delete nukes /usr/home
ben at ixsystems.com
Wed Dec 21 10:05:59 PST 2011
Thanks a lot Kris! Sounds like the wrong-version bug was fixed in this
morning's patch, too.
On Wed, Dec 21, 2011 at 6:24 AM, Kris Moore <kris at pcbsd.org> wrote:
> On 12/20/2011 14:41, Ben Milman wrote:
> Grab a seat, there's a bit of a story, and it includes three bugs.
> In PC-BSD 9 RC3, upgraded that day from RC2, I decided to try out
> gmail-notifier from ports as a preliminary to making a pbi. I ran portjail
> init and selected download but it failed with a message I no longer have
> recorded for reasons that will become apparent. However, part of the
> message was that it had tried to download the portjail for RC2. When I
> checked my system manager in gnome, it opened and then promptly crashed (it
> didn't crash in KDE and doesn't crash on my new fresh RC3 in gnome, so this
> may be a symptom of another update-related bug), but since it froze on the
> first screen I could see that the system was showing PC-BSD version RC2 but
> base version RC3. I assume this was the cause of the portjail download
> failure. I compiled the portjail instead, to check if that was working (I
> included system source and ports tree in my original install). It did, so I
> decided to delete the portjail so that I could show the first error to
> someone. However, upon running portjail delete, all my desktop icons
> Further investigation showed that all the directories in my /usr/home
> directory were now gone. I didn't check other directories in /usr because I
> was in too much of a rush to get back up and running (this is a work
> computer). I decided to reinstall rather than reconstruct in place, so I'm
> now on RC3 straight and can no longer reproduce the portjail download
> failure bug. However, it remains that the PC-BSD version apparently failed
> to increment during the standard update from RC2 to RC3, and that portjail
> delete wiped my /usr/home directory on the OUTER system. IRC conversations
> suggested that a bug such as this:
> https://github.com/MrMEEE/bumblebee/issues/123 might be responsible, but
> it's still odd that the outer system experienced changes from portjail
> There's also a typo in line 317 of portjail.sh - "Enter d tor download"
> should be "Enter d for download".
> Ben Milman
> Testing mailing listTesting at lists.pcbsd.orghttp://lists.pcbsd.org/mailman/listinfo/testing
> Thanks for the heads up. I've fixed the issue deleting the homedir, and
> the typo.
> It was a stray mount causing the issue with homedir getting deleted, we
> have to mount your /usr/home into the portjail, so that apps run from the
> portjail can see / manipulate your files.
> Kris Moore
> PC-BSD Software
> Testing mailing list
> Testing at lists.pcbsd.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Testing