| Server IP : 104.21.84.107 / Your IP : 104.23.197.209 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/initramfs-tools/hooks/ |
Upload File : |
#!/bin/sh
#
# This kdump-tools hook includes kdump sysctl overrides to the
# kdump minimal initrd.
#
# OPTION=VAR is a control provided only by Ubuntu initramfs-tools,
# so this is innocuous and harmless on Debian - kept here for
# better code sync between Debian and Ubuntu.
# shellcheck disable=SC2034
OPTION=KDUMP
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
# In Debian we don't have the fine-tuned control of what hooks to run
# based on OPTION=VAR (like Ubuntu). So, we need the folowing check
# in order to prevent this hook to run for regular initrds - it should
# only be executed for kdump smaller initrd.
if [ "${CONFDIR}" != "/var/lib/kdump/initramfs-tools" ]; then
exit 0
fi
. /usr/share/initramfs-tools/hook-functions
KDUMP_SYSCTL_PATH="/etc/kdump/sysctl.conf"
# Avoid stopping the initrd generation in case of no sysctl overrides
if [ ! -f ${KDUMP_SYSCTL_PATH} ]; then
echo "WARNING: kdump-tools hook couldn't find ${KDUMP_SYSCTL_PATH}"
exit 0
fi
copy_file config ${KDUMP_SYSCTL_PATH}