summaryrefslogtreecommitdiff
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:28:00 +0100
commit82918368123a3d49af08bec23d2adc2363748cf7 (patch)
treecab8cf237678da208f51eceb0b6c9b53b0388ccf
parentc0e865b6d2352e4c08942ec1bd56b1554669eca3 (diff)
downloadvyos-live-build-82918368123a3d49af08bec23d2adc2363748cf7.tar.gz
vyos-live-build-82918368123a3d49af08bec23d2adc2363748cf7.zip
Disabling kexec-tools by default in debian mode.
-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 2072e7c6c..cb5f802c6 100755
--- a/scripts/build/lb_chroot_hacks
+++ b/scripts/build/lb_chroot_hacks
@@ -55,6 +55,19 @@ case "${LB_PARENT_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