mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 03:11:12 +00:00
ubuntu: disable kdump-tools by default
We install the kdump-tools package to minimal layer via inclusion in the desktop-minimal seed, but it is enabled by default. Include a new chroot hook to set USE_KDUMP=0 to make sure it's disabled by default and let the installer decide to enable it or not.
This commit is contained in:
parent
67df97f099
commit
7f1c726441
21
live-build/ubuntu/hooks/020-kdump-tools-disable.chroot
Executable file
21
live-build/ubuntu/hooks/020-kdump-tools-disable.chroot
Executable file
@ -0,0 +1,21 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
# We install kdump-tools in the minimal layer but it's enabled by default.
|
||||
# We disable it here and let subiquity/curtin decide when to enable it later.
|
||||
# This is also important so that it's not in some semi-enabled state in the
|
||||
# live system where USE_KDUMP=1 but it's missing the crashkernel parameter on
|
||||
# the kernel command line. Let's be doubly sure and set USE_KDUMP=0.
|
||||
|
||||
case ${PASS:-} in
|
||||
minimal)
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# kdump-tools relies on USE_KDUMP=1 to be enabled, set to USE_KDUMP=0 for off.
|
||||
sed -i 's/USE_KDUMP=1/USE_KDUMP=0/' /etc/default/kdump-tools
|
||||
|
Loading…
x
Reference in New Issue
Block a user