[Fai-commit] r4065 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Sat Oct 7 13:00:44 UTC 2006


Author: lange
Date: 2006-10-07 13:00:43 +0000 (Sat, 07 Oct 2006)
New Revision: 4065

Modified:
   trunk/lib/subroutines-linux
Log:
add test if base.tgz exists (closes: #390343)


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-10-07 09:39:29 UTC (rev 4064)
+++ trunk/lib/subroutines-linux	2006-10-07 13:00:43 UTC (rev 4065)
@@ -127,6 +127,7 @@
     [ -d $FAI/basefiles ] && ftar -1v -s $FAI/basefiles /
     if [ $? -ne 0 ]; then
 	[ $do_init_tasks -eq 0 ] && basefile=$NFSROOT/var/tmp/base.tgz
+	[ -f $basefile ] && die "$basefile not found. Can't extract it. Aborting."
 	# extract the tar file which was the result of debootstrap
 	echo "Extracting $NFSROOT/var/tmp/base.tgz"
 	gzip -dc $basefile | tar -C $FAI_ROOT -xpf -




More information about the Fai-commit mailing list