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

Michael Tautschnig mt at alioth.debian.org
Sun Oct 23 09:40:50 UTC 2011


Author: mt
Date: 2011-10-23 09:40:50 +0000 (Sun, 23 Oct 2011)
New Revision: 6756

Modified:
   trunk/lib/setup-storage/Volumes.pm
Log:
setup-storage: ignore warning about read-only device for reading partition table

Reported by Thilo: parted may print a warning about read-only partitions, which
can still safely be read. (These devices were not specified in the disk_config.)



Modified: trunk/lib/setup-storage/Volumes.pm
===================================================================
--- trunk/lib/setup-storage/Volumes.pm	2011-10-23 09:37:30 UTC (rev 6755)
+++ trunk/lib/setup-storage/Volumes.pm	2011-10-23 09:40:50 UTC (rev 6756)
@@ -208,7 +208,8 @@
       # now we test line by line - some of them may be ignored
       next if ($line =~ /^Disk / || $line =~ /^Model: / || $line =~ /^\s*$/
         || $line =~ /^WARNING: You are not superuser/
-        || $line =~ /^Warning: Not all of the space available to/);
+        || $line =~ /^Warning: Not all of the space available to/
+        || $line =~ /^Warning: Unable to open \S+ read-write/);
 
       # determine the logical sector size
       if ($line =~ /^Sector size \(logical\/physical\): (\d+)B\/\d+B$/) {




More information about the Fai-commit mailing list