Moving kexec-tools default preseeding into its own hook script.
This commit is contained in:
parent
10d0fb5aed
commit
409545314f
|
@ -611,7 +611,8 @@ Set_defaults ()
|
||||||
remove-udev-persistent-rules \
|
remove-udev-persistent-rules \
|
||||||
remove-linux-image-backups \
|
remove-linux-image-backups \
|
||||||
remove-mdadm-configuration \
|
remove-mdadm-configuration \
|
||||||
remote-adjtime-configuration}"
|
remote-adjtime-configuration \
|
||||||
|
disable-kexec-tools}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
kubuntu)
|
kubuntu)
|
||||||
|
@ -625,7 +626,8 @@ Set_defaults ()
|
||||||
remove-udev-persistent-rules \
|
remove-udev-persistent-rules \
|
||||||
remove-linux-image-backups \
|
remove-linux-image-backups \
|
||||||
remove-mdadm-configuration \
|
remove-mdadm-configuration \
|
||||||
remove-adjtime-configuration}"
|
remove-adjtime-configuration \
|
||||||
|
disable-kexec-tools}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -38,20 +38,6 @@ Check_lockfile .lock
|
||||||
# Creating lock file
|
# Creating lock file
|
||||||
Create_lockfile .lock
|
Create_lockfile .lock
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
case "${LB_BINARY_IMAGES}" in
|
case "${LB_BINARY_IMAGES}" in
|
||||||
netboot)
|
netboot)
|
||||||
if [ ! -f chroot/sbin/mount.cifs ]
|
if [ ! -f chroot/sbin/mount.cifs ]
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/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
|
Loading…
Reference in New Issue