[node-patches] Change in ovirt-node[master]: Include dmsquash-live in kdump's dracut

rbarry at redhat.com rbarry at redhat.com
Fri Jan 9 18:10:33 UTC 2015


Ryan Barry has uploaded a new change for review.

Change subject: Include dmsquash-live in kdump's dracut
......................................................................

Include dmsquash-live in kdump's dracut

To do this, add it to dracut.conf (augeas won't deal with new
options in kdump.conf for dracut yet), and patch the hardcoded
hostonly bits out of mkdumprd so dmsquash-live gets pulled in. We
need it for kdumps of all types.

Change-Id: Ic46bfaee7eebe55f73120ced2f7f4b451baf315c
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1180371
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1180377
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1095140
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M recipe/rhevh7-post.ks
1 file changed, 17 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/44/36744/1

diff --git a/recipe/rhevh7-post.ks b/recipe/rhevh7-post.ks
index 265e052..61fe8c0 100644
--- a/recipe/rhevh7-post.ks
+++ b/recipe/rhevh7-post.ks
@@ -27,6 +27,23 @@
 		esac
 EOF_kdump
 
+# include dmsquash-live in dracut for kdump
+sed -ie 's/^#add_dracutmodules+=""/add_dracutmodules+="dmsquash-live"/' /etc/dracut.conf
+
+# Don't use hostonly for kdump or we'll miss dmsquash-live
+patch -d /usr/sbin -p0 << \EOF_mkdumprd
+--- mkdumprd.orig       2015-01-09 11:05:44.132744400 -0700
++++ mkdumprd    2015-01-09 11:05:56.858840503 -0700
+@@ -14,7 +14,7 @@
+ SAVE_PATH=$(grep ^path $conf_file| cut -d' '  -f2)
+ [ -z "$SAVE_PATH" ] && SAVE_PATH="/var/crash"
+ extra_modules=""
+-dracut_args=("--hostonly" "--hostonly-cmdline" "-o" "plymouth dash")
++dracut_args=("-o" "plymouth dash")
+ OVERRIDE_RESETTABLE=0
+ 
+ perror_exit() {
+EOF_mkdumprd
 
 # add RHEV-H rwtab locations
 mkdir -p /rhev


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic46bfaee7eebe55f73120ced2f7f4b451baf315c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list