[blivet:master/rhel7 8/9] Add a method that looks at DEVNAME (#1090009)
mulhern
amulhern at redhat.com
Thu Dec 11 22:29:28 UTC 2014
Related: rhbz#1090009
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/udev.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/blivet/udev.py b/blivet/udev.py
index 1ca9890..8a5c084 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -319,6 +319,9 @@ def device_get_major(info):
def device_get_minor(info):
return int(info["MINOR"])
+def device_get_devname(info):
+ return info.get('DEVNAME')
+
def device_get_md_level(info):
""" Returns the RAID level of the array of which this device is a member.
--
1.9.3
More information about the anaconda-patches
mailing list