mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
system: create core dump with debug kernel
This commit is contained in:
parent
65402b72cc
commit
dcc9c40514
@ -1,7 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -e 's/kdb.enter.panic=/kdb.enter.default=/' \
|
||||
/etc/ddb.conf > /tmp/ddb.conf
|
||||
sed -e 's/kdb.enter.panic=/kdb.enter.default=/' /etc/ddb.conf > /tmp/ddb.conf
|
||||
|
||||
if [ -d /usr/lib/debug/boot/kernel ]; then
|
||||
# if we have a debug kernel create vmcore file instead
|
||||
sed -e 's/kdb.enter.default=.*/kdb.enter.default=bt;dump;reset/' \
|
||||
-i '' /tmp/ddb.conf
|
||||
fi
|
||||
|
||||
echo -n "Configuring crash dump device: "
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user