[rhel7-branch 3/6] Add a method that looks at DEVNAME (#1202877)
mulkieran
installerbot-noreply at redhat.com
Wed Jun 3 22:17:39 UTC 2015
From: mulhern <amulhern at redhat.com>
Related: rhbz#1090009
Related: rhbz#1202877
(cherry-picked from commit bfb93d682e7270fdf73b5fd8b3c80c9ea699d3f2)
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 d84d88e..e6294dd 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -324,6 +324,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.
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/a7a4afdbfbda9ba4abc2f4bf3ebc17062beb5c2d
More information about the anaconda-patches
mailing list