This reverts commit 892bea7aa
We already eliminated the root filesystem by removing "root=X"
in case of non-root dumping, and for livecd it must be non-root
dumping according to "live-image-kdump-howto.txt".
So it's time to revert this commit.
Also update "live-image-kdump-howto.txt", make sure users do not
configure "default dump_to_rootfs".
Signed-off-by: Xunlei Pang <xlpang(a)redhat.com>
---
v1->v2:
No change.
kdumpctl | 4 ----
live-image-kdump-howto.txt | 2 ++
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/kdumpctl b/kdumpctl
index ed76098..05ae9b5 100755
--- a/kdumpctl
+++ b/kdumpctl
@@ -184,10 +184,6 @@ prepare_cmdline()
if [ -z "$KDUMP_COMMANDLINE" ]; then
cmdline=`cat /proc/cmdline`
- # 'root' parameter will cause kdump failure in live images
- if [[ ${cmdline} == *"root=live:"* ]]; then
- KDUMP_COMMANDLINE_REMOVE="${KDUMP_COMMANDLINE_REMOVE} root"
- fi
else
cmdline=${KDUMP_COMMANDLINE}
fi
diff --git a/live-image-kdump-howto.txt b/live-image-kdump-howto.txt
index e0bc9f1..1695a1c 100644
--- a/live-image-kdump-howto.txt
+++ b/live-image-kdump-howto.txt
@@ -13,6 +13,8 @@ When kdump kernel boots in a live environment, the default target
/var/crash is
in RAM so you need to change the dump target to an external disk or a network
dump target.
+Besides, make sure that "default dump_to_rootfs" is not specified.
+
3. Start kdump service
$ kdumpctl start
--
1.8.3.1