[PATCH 3/3] Add dracutSetupData() method to DASDDevice (#526354).

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

 



Return kernel parameter information for the DASD.
---
 storage/devices.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 7d31b26..e404e9c 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -3161,6 +3161,15 @@ class DASDDevice(DiskDevice):
         self.opts = kwargs.get('opts')
         DiskDevice.__init__(self, device, kwargs)
 
+    def dracutSetupString(self):
+        arg = "dasd=%s" % (self.busid,)
+        opts = ":".join(filter(lambda s: self.opts[s], self.opts.keys()))
+
+        if opts:
+            arg += "(" + opts + ")"
+
+        return arg
+
 
 class NFSDevice(StorageDevice, NetworkStorageDevice):
     """ An NFS device """
-- 
1.6.2.5

_______________________________________________
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