[Fai-commit] r3894 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Fri Sep 8 09:22:32 UTC 2006


Author: lange
Date: 2006-09-08 09:22:31 +0000 (Fri, 08 Sep 2006)
New Revision: 3894

Modified:
   trunk/lib/subroutines-linux
Log:
add test if fai/basefiles exists


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-09-07 16:33:20 UTC (rev 3893)
+++ trunk/lib/subroutines-linux	2006-09-08 09:22:31 UTC (rev 3894)
@@ -124,7 +124,7 @@
 
     echo "Unpacking Debian base archive"
     # copy the base file class based if it exists
-    ftar -1v -s $FAI/basefiles /
+    [ -d $FAI/basefiles ] && ftar -1v -s $FAI/basefiles /
     if [ $? -ne 0 ]; then
 	[ $do_init_tasks -eq 0 ] && basefile=$NFSROOT/var/tmp/base.tgz
 	# extract the tar file which was the result of debootstrap




More information about the Fai-commit mailing list