/usr/X11R6 sym link
Matthias Apitz
guru at unixarea.de
Thu Oct 30 07:00:08 UTC 2014
Hello,
I wanted to update one of my laptops with my usual procedure:
- boot from a well prepared USB key with 11-CURRENT, packages, src, ...
- wipe out with newfs(8) all file systems, but not /usr
- mount the (old) /usr as /mnt/usr
- rm -rf everything in /mnt/usr, but not /mnt/usr/home
- install 'make installworld ...' into /mnt
- ...
A pity that I overlooked that the old /usr/X11R6 was a sym link to
(fully qualified) /usr/local:
$ ls -l /mnt/usr
total 58
lrwxr-xr-x 1 root wheel 10 7 abr 2011 X11R6 -> /usr/local
drwxr-xr-x 2 root wheel 7680 1 ago 2012 bin
drwxr-xr-x 2 root wheel 512 12 abr 2011 compat
drwxr-xr-x 2 root wheel 512 18 abr 2011 games
...
This (rm -rf /mnt/usr/X11R6) damaged the system I was sitting on, i.e.
the USB key :-(
Ofc, I have had an image of the key and could recreate the key in a few
minutes. And of course, I could have seen this and ofc I will keep my
eyes wider open next time, but I'm curious: what piece of old package
could have created such a symlink in this older (9-CURRENT)
system?
Any idea?
matthias
--
Matthias Apitz | /"\ ASCII Ribbon Campaign:
E-mail: guru at unixarea.de | \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ | X - No proprietary attachments
phone: +49-170-4527211 | / \ - Respect for open standards
| en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
More information about the freebsd-questions
mailing list