[Fai-commit] r4065 - trunk/lib

Ingo Wichmann iw at linuxhotel.de
Sat Oct 7 15:31:51 CEST 2006


Könnte man statt einem Fehler nicht einfach debootstrap aufrufen? Dauert
zwar länger, aber würde die Installation noch mal vereinfachen.

Viele Grüße,

Ingo



fai-commit at lists.alioth.debian.org schrieb:
> 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 -
> 
> 
> _______________________________________________
> Fai-commit mailing list
> Fai-commit at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/fai-commit



More information about the linux-fai-devel mailing list