[Fai-commit] r5064 - trunk/lib/setup-storage

lange at alioth.debian.org lange at alioth.debian.org
Fri Aug 29 16:47:03 UTC 2008


Author: lange
Date: 2008-08-29 16:47:02 +0000 (Fri, 29 Aug 2008)
New Revision: 5064

Modified:
   trunk/lib/setup-storage/Volumes.pm
Log:
ignore output line of parted containing "Model:" (closes: #497066)


Modified: trunk/lib/setup-storage/Volumes.pm
===================================================================
--- trunk/lib/setup-storage/Volumes.pm	2008-08-29 16:27:16 UTC (rev 5063)
+++ trunk/lib/setup-storage/Volumes.pm	2008-08-29 16:47:02 UTC (rev 5064)
@@ -137,7 +137,7 @@
     foreach my $line (@parted_print) {
 
       # now we test line by line - some of them may be ignored
-      next if ($line =~ /^Disk / || $line =~ /^\s*$/
+      next if ($line =~ /^Disk / || $line =~ /^Model: / || $line =~ /^\s*$/
         || $line =~ /^WARNING: You are not superuser/);
 
       # determine the logical sector size




More information about the Fai-commit mailing list