From 18c8ece239c6530224446264ef0827d07fe7f262 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 16 Dec 2012 23:48:24 +0100 Subject: Moving kexec-tools default preseeding into its own hook script. --- share/hooks/0130-disable-kexec-tools.chroot | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 share/hooks/0130-disable-kexec-tools.chroot (limited to 'share') diff --git a/share/hooks/0130-disable-kexec-tools.chroot b/share/hooks/0130-disable-kexec-tools.chroot new file mode 100755 index 000000000..403d1d413 --- /dev/null +++ b/share/hooks/0130-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