Revert "kdumpctl: filter 'root' kernel parameter when running in live images"
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@redhat.com>
Acked-by: Pratyush Anand <panand@redhat.com>
Acked-by:Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
b40c1f96cf
commit
3b311653f2
4
kdumpctl
4
kdumpctl
@ -184,10 +184,6 @@ prepare_cmdline()
|
|||||||
|
|
||||||
if [ -z "$KDUMP_COMMANDLINE" ]; then
|
if [ -z "$KDUMP_COMMANDLINE" ]; then
|
||||||
cmdline=`cat /proc/cmdline`
|
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
|
else
|
||||||
cmdline=${KDUMP_COMMANDLINE}
|
cmdline=${KDUMP_COMMANDLINE}
|
||||||
fi
|
fi
|
||||||
|
@ -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
|
in RAM so you need to change the dump target to an external disk or a network
|
||||||
dump target.
|
dump target.
|
||||||
|
|
||||||
|
Besides, make sure that "default dump_to_rootfs" is not specified.
|
||||||
|
|
||||||
3. Start kdump service
|
3. Start kdump service
|
||||||
|
|
||||||
$ kdumpctl start
|
$ kdumpctl start
|
||||||
|
Loading…
Reference in New Issue
Block a user