Subject: Disabling kexec-tools by default in debian mode.

From: Daniel Baumann <[email-masked]>
Date: Wed, 23 Mar 2011 14:27:42 +0100

---
 scripts/build/lb_chroot_hacks | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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
-- 
cgit v1.0