--- storage/devices.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/storage/devices.py b/storage/devices.py index ad936ea..d480dc5 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -3160,7 +3160,10 @@ class DASDDevice(DiskDevice): DiskDevice.__init__(self, *args, **kwargs) def dracutSetupData(self): - arg = {'option': 'dasd', 'combine': True, 'delimiter': ','} + arg = {'option': 'dasd', + 'combine': True, + 'delimiter': ',', + 'filter': self.filterDASDValues} subargs = [] if self.readonly: @@ -3179,6 +3182,13 @@ class DASDDevice(DiskDevice): return [arg] + def filterDASDValues(self, values=[]): + # XXX: will reduce a list of dasd= specs from: + # dasd=0.0.0200,0.0.0201,0.0.0202,0.0.0203,0.0.0204 + # to: + # dasd=0.0.0200-0.0.0204 + return values + 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