[PATCH][master][rhel6-branch] Be specific when telling lvm to ignore devices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The lvm reject/accept strings are regular expressions, not full name
matches. If we tell lvm to ignore "sda" via "r|sda|" we are really
telling it to ignore any device containing the string "sda", which is
not what we want.

Revolves: rhbz#594433
Related: rhbz#578813
---
 pyanaconda/storage/devicelibs/lvm.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/devicelibs/lvm.py b/pyanaconda/storage/devicelibs/lvm.py
index 726d209..15f083e 100644
--- a/pyanaconda/storage/devicelibs/lvm.py
+++ b/pyanaconda/storage/devicelibs/lvm.py
@@ -70,11 +70,11 @@ def _composeConfig():
     # accepts = config_args_data["filterAccepts"]
     # if len(accepts) > 0:
     #   for i in range(len(rejects)):
-    #       filter_string = filter_string + ("\"a|%s|\", " % accpets[i])
+    #       filter_string = filter_string + ("\"a|/%s$|\", " % accepts[i])
 
     if len(rejects) > 0:
         for i in range(len(rejects)):
-            filter_string = filter_string + ("\"r|%s|\"," % rejects[i])
+            filter_string = filter_string + ("\"r|/%s$|\"," % rejects[i])
 
 
     filter_string = " filter=[%s] " % filter_string.strip(",")
-- 
1.6.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux