diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-16 23:48:24 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-12-16 23:48:34 +0100 |
commit | 409545314f5944e7c33f8496aa4cd2cec9e08771 (patch) | |
tree | 5ed9d361392f72e35eda71b708ecd5bcc8d21c12 /share/hooks | |
parent | 10d0fb5aed4722bc4eb246aaecb11507c1b8562f (diff) | |
download | vyos-live-build-409545314f5944e7c33f8496aa4cd2cec9e08771.tar.gz vyos-live-build-409545314f5944e7c33f8496aa4cd2cec9e08771.zip |
Moving kexec-tools default preseeding into its own hook script.
Diffstat (limited to 'share/hooks')
-rwxr-xr-x | share/hooks/0130-disable-kexec-tools.chroot | 16 |
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 |