[PATCH 1/2] Fix getting dracut setup args from dasd.conf. (#950964)
David Lehman
dlehman at redhat.com
Mon Apr 15 14:57:51 UTC 2013
---
blivet/devices.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index 74015a2..f289410 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3817,8 +3817,11 @@ class DASDDevice(DiskDevice):
if os.path.isfile(conf):
f = open(conf)
# grab the first line that starts with our busID
- line = [line for line in f.readlines()
- if line.startswith(self.busid)][:1]
+ for l in f.readlines():
+ if l.startswith(self.busid):
+ line = l.rstrip()
+ break
+
f.close()
# See if we got a line. If not, grab our getOpts
--
1.8.1.4
More information about the anaconda-patches
mailing list