summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-03-23 14:27:42 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-23 14:27:42 +0100
commit575e0a8614081208a7c98d373adc8da1fd5c9b38 (patch)
treebd002d5afcf5229990a73afccaac80bdf5383ab7 /scripts/build
parent3fa575103c6549ad7df429e385ce69f228e7ee31 (diff)
downloadlive-build-575e0a8614081208a7c98d373adc8da1fd5c9b38.zip
live-build-575e0a8614081208a7c98d373adc8da1fd5c9b38.tar.gz
Disabling kexec-tools by default in debian mode.
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/lb_chroot_hacks13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks
index b78ba3a..5b8681a 100755
--- a/scripts/build/lb_chroot_hacks
+++ b/scripts/build/lb_chroot_hacks
@@ -55,6 +55,19 @@ case "${LB_DISTRIBUTION}" in
esac
# Handling default desktop configuration
+case "${LB_MODE}" in
+ debian*)
+ # disable kexec-tools
+ if [ -e chroot/sbin/kexec ]
+ then
+ echo "kexec-tools kexec-tools/load_kexec boolean false" > chroot/root/preseed
+ Chroot chroot "debconf-set-selections /root/preseed"
+ rm -f chroot/root/preseed
+ Chroot chroot "dpkg-reconfigure kexec-tools"
+ fi
+ ;;
+esac
+
for TASK in ${LB_TASKS}
do
case "${TASK}" in