From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 07:15:12 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFB8463B for ; Thu, 30 Oct 2014 07:15:12 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84045E54 for ; Thu, 30 Oct 2014 07:15:12 +0000 (UTC) Received: from r56.edvax.de (port-92-195-145-127.dynamic.qsc.de [92.195.145.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id BFB092780C; Thu, 30 Oct 2014 08:15:03 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s9U7F3Mq006418; Thu, 30 Oct 2014 08:15:03 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 30 Oct 2014 08:15:03 +0100 From: Polytropon To: Matthias Apitz Subject: Re: /usr/X11R6 sym link Message-Id: <20141030081503.5985afdb.freebsd@edvax.de> In-Reply-To: <20141030065945.GA1778@unixarea.DDR.dd> References: <20141030065945.GA1778@unixarea.DDR.dd> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 07:15:12 -0000 On Thu, 30 Oct 2014 07:59:46 +0100, Matthias Apitz wrote: > 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? I think this symlink is being created already by the OS installation. You can add any missing directories using mtree and the .dist files in /etc/mtree... lrwxr-xr-x 1 root wheel 10 2011-08-21 22:32:05 X11R6@ -> /usr/local On the other hand, I assume any port that still requires /usr/X11R6 will take care to create it. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...