From nick@van-laarhoven.org  Tue Jul 22 18:57:35 2008
Return-Path: <nick@van-laarhoven.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 44CD7106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Jul 2008 18:57:35 +0000 (UTC)
	(envelope-from nick@van-laarhoven.org)
Received: from cpsmtpo-eml05.kpnxchange.com (cpsmtpo-eml05.kpnxchange.com [213.75.38.154])
	by mx1.freebsd.org (Postfix) with ESMTP id D70178FC17
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Jul 2008 18:57:34 +0000 (UTC)
	(envelope-from nick@van-laarhoven.org)
Received: from cpsmtpi-eml05.kpnxchange.com ([213.75.38.135]) by cpsmtpo-eml05.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Tue, 22 Jul 2008 20:45:31 +0200
Received: from uitsmijter.van-laarhoven.org ([81.207.207.222]) by cpsmtpi-eml05.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Tue, 22 Jul 2008 20:45:31 +0200
Received: (qmail 86865 invoked by uid 98); 22 Jul 2008 18:45:30 -0000
Received: from 10.66.0.147 (nick@10.66.0.147) by uitsmijter.van-laarhoven.org (envelope-from <nick@van-laarhoven.org>, uid 82) with qmail-scanner-2.01 
 (clamdscan: 0.92/5270. f-prot: 4.6.7/3.16.15. spamassassin: 3.2.3.  
 Clear:RC:1(10.66.0.147):. 
 Processed in 0.71008 secs); 22 Jul 2008 18:45:30 -0000
Received: from unknown (HELO van-laarhoven.org) (nick@10.66.0.147)
  by uitsmijter.van-laarhoven.org with SMTP; 22 Jul 2008 18:45:29 -0000
Received: (nullmailer pid 11871 invoked by uid 1001);
	Tue, 22 Jul 2008 09:01:56 -0000
Message-Id: <1216717316.681165.11870.nullmailer@van-laarhoven.org>
Date: Tue, 22 Jul 2008 11:01:56 +0200
From: Nick Hibma <nick@anywi.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: nanobsd fails on creating a directory that already exists (when rebuilding)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         125881
>Category:       misc
>Synopsis:       [nanobsd] [patch] nanobsd fails on creating a directory that already exists (when rebuilding)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    n_hibma
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 22 19:00:17 UTC 2008
>Closed-Date:    Tue Jun 16 12:15:14 UTC 2009
>Last-Modified:  Tue Jun 16 12:15:14 UTC 2009
>Originator:     Nick Hibma
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
AnyWi Technologies
>Environment:
System: FreeBSD hind.van-laarhoven.org 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Jun 25 18:08:59 CEST 2008 root@hind.van-laarhoven.org:/usr/obj/usr/src/sys/HIND i386


>Description:
nanobsd fails while creating the disk image at the following stage if install
world is skipped.

## configure nanobsd setup
### log: /usr/obj/nanobsd.koole.ship/_.dl

>How-To-Repeat:
Redefine all functions but customize (which is done in our nanobsd wrapper).
>Fix:
--- /usr/src/tools/tools/nanobsd/nanobsd.sh~	2008-05-20 12:03:53.000000000 +0200
+++ /usr/src/tools/tools/nanobsd/nanobsd.sh	2008-07-22 10:57:46.000000000 +0200
@@ -244,7 +244,7 @@
 	# have hardcoded paths under ${prefix}/etc are not tweakable.
 	if [ -d usr/local/etc ] ; then
 		(
-		mkdir etc/local
+		mkdir -p etc/local
 		cd usr/local/etc
 		find . -print | cpio -dumpl ../../../etc/local
 		cd ..

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: brooks 
State-Changed-When: Fri Oct 17 13:37:54 UTC 2008 
State-Changed-Why:  
Submitter committed to head.  Awaiting MFC. 


Responsible-Changed-From-To: freebsd-bugs->n_hibma 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Fri Oct 17 13:37:54 UTC 2008 
Responsible-Changed-Why:  
Submitter committed to head.  Awaiting MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125881 
State-Changed-From-To: patched->closed 
State-Changed-By: edwin 
State-Changed-When: Tue Jun 16 12:14:05 UTC 2009 
State-Changed-Why:  
MFC done in a giant sync by sam@ 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125881 
>Unformatted:
