[Fai-commit] r3098 - trunk/bin

fai-repository at svn.debian.org fai-repository at svn.debian.org
Wed Nov 23 23:11:33 UTC 2005


Author: lange
Date: 2005-11-23 23:11:32 +0000 (Wed, 23 Nov 2005)
New Revision: 3098

Modified:
   trunk/bin/fai-cd
Log:
call exit after unsuccessful mktemp call


Modified: trunk/bin/fai-cd
===================================================================
--- trunk/bin/fai-cd	2005-11-23 22:52:17 UTC (rev 3097)
+++ trunk/bin/fai-cd	2005-11-23 23:11:32 UTC (rev 3098)
@@ -30,7 +30,7 @@
 #*********************************************************************
 
 set -e 
-version="fai-cd 1.2.4"
+version="fai-cd 1.2.5"
 
 isoversion="$version -- build $(date '+%c')"
 vname="Fully Automatic Installation CD"
@@ -207,7 +207,7 @@
 # TODO: customize /etc/apt, copy apt preferences etc.
 
     # this will be the sources.list for the CD
-    tmp1=$(mktemp)
+    tmp1=$(mktemp) || exit 12
     cat > $tmp1 <<EOF
 # mirror location for fai CD, file generated by fai-cd
 EOF
@@ -264,7 +264,7 @@
 [ -x "$(which mkisofs)" ] || die 8 "mkisofs not found. Please install package."
 [ -d "$NFSROOT/etc/fai" ] || die 10 "Please create NFSROOT by calling make-fai-nfsroot or fai-setup."
 
-tmp=$(mktemp -t -d fai-cd.XXXXXX)
+tmp=$(mktemp -t -d fai-cd.XXXXXX) || exit 13
 kernelversion=$(ls -tr $NFSROOT/boot/vmlinu?-* | tail -1 | sed -e 's#.*/vmlinuz-##')
 
 create_initrd_image




More information about the Fai-commit mailing list