[Fai-commit] r3575 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Thu Jul 20 13:06:02 UTC 2006


Author: lange
Date: 2006-07-20 13:06:00 +0000 (Thu, 20 Jul 2006)
New Revision: 3575

Modified:
   trunk/bin/make-fai-nfsroot
Log:
test existing directory before creating it


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2006-07-20 11:51:56 UTC (rev 3574)
+++ trunk/bin/make-fai-nfsroot	2006-07-20 13:06:00 UTC (rev 3575)
@@ -273,7 +273,8 @@
     # read only for the install clients 
     rm etc/mtab
     ln -s /proc/mounts etc/mtab
-    mkdir var/lib/discover etc/sysconfig tmp/etc
+    [ -d "var/lib/discover" ] || mkdir var/lib/discover
+    mkdir etc/sysconfig tmp/etc
     cp -p /etc/resolv.conf tmp/etc # so we have DNS after chroot $NFSROOT on the install server
     ln -sf /tmp/etc/resolv.conf etc/resolv.conf
     ln -s /usr/sbin/fai etc/init.d/rcS




More information about the Fai-commit mailing list