summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-03-23 14:27:42 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-24 22:05:28 +0100
commit80a05d775ab66ce5db67958d926629d6659c0faa (patch)
tree700950ec7a306b3d24c32648a009c5d78d891b49 /scripts/build/lb_chroot_hacks
parent319aa92a25614b17181a5beb917998777fa893d7 (diff)
downloadlive-build-80a05d775ab66ce5db67958d926629d6659c0faa.zip
live-build-80a05d775ab66ce5db67958d926629d6659c0faa.tar.gz
Disabling kexec-tools by default in debian mode.
Diffstat (limited to 'scripts/build/lb_chroot_hacks')
-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