Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2014 07:59:46 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   /usr/X11R6 sym link
Message-ID:  <20141030065945.GA1778@unixarea.DDR.dd>

next in thread | raw e-mail | index | archive | help

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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141030065945.GA1778>