[node-patches] Change in ovirt-node[master]: edit-node: check for dracut.conf before attempting to read c...
jboggs at redhat.com
jboggs at redhat.com
Fri Jun 13 18:02:48 UTC 2014
Joey Boggs has uploaded a new change for review.
Change subject: edit-node: check for dracut.conf before attempting to read contents
......................................................................
edit-node: check for dracut.conf before attempting to read contents
Change-Id: I2fb13dcfc5059fc51bd18a35e6610d6412d1716f
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1109350
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M tools/edit-node
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/19/28719/1
diff --git a/tools/edit-node b/tools/edit-node
index ee2a8c3..b03bdb9 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1203,8 +1203,10 @@
print("Creating initramfs")
# ensure dmsquash-live dracut module is included
d_conf = "%s/etc/dracut.conf" % self._instroot
- with open(d_conf) as f:
- current = f.readlines()
+ current = ""
+ if os.path.exists(d_conf):
+ with open(d_conf) as f:
+ current = f.readlines()
add_modules = True
for line in current:
if line.startswith("add_dracutmodules") \
--
To view, visit http://gerrit.ovirt.org/28719
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2fb13dcfc5059fc51bd18a35e6610d6412d1716f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>
More information about the node-patches
mailing list