summaryrefslogtreecommitdiff
path: root/share/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'share/hooks')
-rwxr-xr-xshare/hooks/0130-disable-kexec-tools.chroot16
1 files changed, 16 insertions, 0 deletions
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