ISO
ISO copied to clipboard
Enable core dumps to /tmp if the system was booted without boot_mute
# Enable core dumps to /tmp if the system was booted without boot_mute
if [ "$(sysctl -q -n kern.consmute)" = "0" ] ; then
sysctl savecore_enable="YES" # Kernel dumps
sysctl kern.coredump=1
sysctl kern.corefile="/tmp/%N.core"
fi
But where to run this? Put it into its own rc file?
While we are at it, we should probably replace other occurences of
if [ "$(kenv boot_mute 2>/dev/null)" = "YES" ] ; then
with
if [ "$(sysctl -q -n kern.consmute)" = "0" ] ; then
as well to make it more robust?
Maybe put it in /etc/rc.local?