[Fai-commit] r3778 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Wed Aug 23 21:00:42 UTC 2006


Author: lange
Date: 2006-08-23 21:00:42 +0000 (Wed, 23 Aug 2006)
New Revision: 3778

Modified:
   trunk/lib/subroutines-linux
Log:
add test for existing file


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-08-23 20:36:47 UTC (rev 3777)
+++ trunk/lib/subroutines-linux	2006-08-23 21:00:42 UTC (rev 3778)
@@ -120,7 +120,7 @@
     gzip -dc $basefile | tar -C $FAI_ROOT -xpf -
     # now we can copy fstab
     [ -f $fs ] && mv $fs $fs.old
-    cp -p $LOGDIR/fstab $fs
+    [ -f $LOGDIR/fstab ] && cp -p $LOGDIR/fstab $fs
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 ### BEGIN SUBROUTINE INFO




More information about the Fai-commit mailing list