[PATCH] Mountpoint detection for removable devices

Vojtech Trefny vtrefny at redhat.com
Tue Nov 18 17:07:54 UTC 2014


---

Removable devices are mounted with '-o nodev' by default.

 blivet/devicetree.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 7f3f73a..543eb44 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -2492,6 +2492,8 @@ class DeviceTree(object):
                     break
         elif options and "nodev" in options.split(","):
             device = self.getDeviceByName(devspec)
+            if not device:
+                device = self.getDeviceByPath(devspec)
         else:
             if not devspec.startswith("/dev/"):
                 device = self.getDeviceByName(devspec)
-- 
2.1.0



More information about the anaconda-patches mailing list