Forward logs in kdump kernel to console directly
Don't use any log storage and forward to console directly, this make console output more useful, and also save more memory. On a fresh installed Fedora 30 it saved ~5M of memory, and the amount of log being printed to console is still accetable. Signed-off-by: Kairui Song <kasong@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
b998b90197
commit
5b26c1f8b2
@ -822,4 +822,11 @@ install() {
|
|||||||
echo "[Manager]" > ${initdir}/etc/systemd/system.conf.d/kdump.conf
|
echo "[Manager]" > ${initdir}/etc/systemd/system.conf.d/kdump.conf
|
||||||
echo "DefaultTimeoutStartSec=300s" >> ${initdir}/etc/systemd/system.conf.d/kdump.conf
|
echo "DefaultTimeoutStartSec=300s" >> ${initdir}/etc/systemd/system.conf.d/kdump.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Forward logs to console directly, this avoids unneccessary memory
|
||||||
|
# consumption and make console output more useful
|
||||||
|
mkdir -p ${initdir}/etc/systemd/journald.conf.d
|
||||||
|
echo "[Journal]" > ${initdir}/etc/systemd/journald.conf.d/kdump.conf
|
||||||
|
echo "Storage=none" >> ${initdir}/etc/systemd/journald.conf.d/kdump.conf
|
||||||
|
echo "ForwardToConsole=yes" >> ${initdir}/etc/systemd/journald.conf.d/kdump.conf
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user