[node-patches] Change in ovirt-node[master]: edit-node: add dmsquash-live module to dracut conf

jboggs at redhat.com jboggs at redhat.com
Fri Aug 31 02:51:38 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: edit-node: add dmsquash-live module to dracut conf
......................................................................

edit-node: add dmsquash-live module to dracut conf

Change-Id: Ib29ee961880544af6ba859596e4d1d1dfb20a383
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M tools/edit-node
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/47/7647/1

diff --git a/tools/edit-node b/tools/edit-node
index 1b842f3..b2d97bd 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1207,6 +1207,11 @@
                 f.close()
 
     def _rebuild_initramfs(self):
+        # ensure dmsquash-live dracut module is included
+        d_conf = "%s/etc/dracut.conf" % self._instroot
+        dracut_conf = open(d_conf, "a")
+        dracut_conf.write('add_dracutmodules+="dmsquash-live"')
+        dracut_conf.close()
         cmd = "rpm -q kernel"
         f = subprocess.Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT, preexec_fn = self._chroot)
         output, err = f.communicate()


--
To view, visit http://gerrit.ovirt.org/7647
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib29ee961880544af6ba859596e4d1d1dfb20a383
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