[Fai-commit] r4882 - people/michael/features/setup_harddisks_2/implementation/lib

mt at alioth.debian.org mt at alioth.debian.org
Fri May 9 11:06:25 UTC 2008


Author: mt
Date: 2008-05-09 11:06:24 +0000 (Fri, 09 May 2008)
New Revision: 4882

Modified:
   people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm
Log:
a device may not exist anymore, if the disklabel has been dropped


Modified: people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm	2008-05-09 09:49:44 UTC (rev 4881)
+++ people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm	2008-05-09 11:06:24 UTC (rev 4882)
@@ -119,7 +119,8 @@
       (1024 * 1024);
 
     # the size is not known (yet?)
-    die "Cannot determine size of $dev\n";
+    warn "Cannot determine size of $dev\n";
+    return 0;
   }
 
   # try RAID; estimations here are very limited and possible imprecise




More information about the Fai-commit mailing list