From a46350d7b3a0e31d720cc3c3ac1345e012ceab2d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Dec 2012 00:20:50 +0100 Subject: Renumbering hooks. --- share/hooks/0010-disable-kexec-tools.chroot | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 share/hooks/0010-disable-kexec-tools.chroot (limited to 'share/hooks/0010-disable-kexec-tools.chroot') diff --git a/share/hooks/0010-disable-kexec-tools.chroot b/share/hooks/0010-disable-kexec-tools.chroot new file mode 100755 index 000000000..403d1d413 --- /dev/null +++ b/share/hooks/0010-disable-kexec-tools.chroot @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +# Disable kexec-tools + +if [ -e /sbin/kexec ] +then + echo "kexec-tools kexec-tools/load_kexec boolean false" > /root/preseed + + debconf-set-selections /root/preseed + + rm -f /root/preseed + + dpkg-reconfigure kexec-tools +fi -- cgit v1.2.3