[Fai-commit] r4297 - trunk/lib
lange at alioth.debian.org
lange at alioth.debian.org
Sun Jun 10 14:39:53 UTC 2007
Author: lange
Date: 2007-06-10 14:39:53 +0000 (Sun, 10 Jun 2007)
New Revision: 4297
Modified:
trunk/lib/subroutines
Log:
copy disk_var.sh only if available (closes: #415880)
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2007-06-10 14:35:40 UTC (rev 4296)
+++ trunk/lib/subroutines 2007-06-10 14:39:53 UTC (rev 4297)
@@ -503,7 +503,8 @@
fi
# the following copy operation is required to make $LOGDIR a reliable source
# for disk_var.sh
- cp -p /var/lib/fai/disk_var.sh $LOGDIR # use the last disk_var during update
+ # use the last disk_var during update if available
+ [ -f /var/lib/fai/disk_var.sh ] && cp -p /var/lib/fai/disk_var.sh $LOGDIR
defnop wait_for_jobs
save_dmesg
More information about the Fai-commit
mailing list