bookworm/roles/edulive/files/standard-edu/config/hooks/live/0010-disable-kexec-tools.hook.chroot

17 lines
237 B
Text
Raw Normal View History

#!/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