Add module blacklisting to installer
This commit is contained in:
parent
5290cbaaa9
commit
e5447e49d3
|
@ -80,6 +80,9 @@ basepkglist="lvm2,parted,gdisk,grub-pc,grub-efi-amd64,linux-image-amd64,sudo,vim
|
||||||
# Supplemental packages (installed in chroot after debootstrap)
|
# Supplemental packages (installed in chroot after debootstrap)
|
||||||
suppkglist="firmware-linux,firmware-linux-nonfree,firmware-bnx2,firmware-bnx2x,ntp,ipmitool,acpid,acpi-support-base"
|
suppkglist="firmware-linux,firmware-linux-nonfree,firmware-bnx2,firmware-bnx2x,ntp,ipmitool,acpid,acpi-support-base"
|
||||||
|
|
||||||
|
# Modules to blacklist (known-faulty)
|
||||||
|
target_module_blacklist=( "hpwdt" )
|
||||||
|
|
||||||
# DANGER - THIS PASSWORD IS PUBLIC
|
# DANGER - THIS PASSWORD IS PUBLIC
|
||||||
# It should be used ONLY immediately after booting the PVC node in a SECURE environment
|
# It should be used ONLY immediately after booting the PVC node in a SECURE environment
|
||||||
# to facilitate troubleshooting of a failed boot. It should NOT be exposed to the Internet,
|
# to facilitate troubleshooting of a failed boot. It should NOT be exposed to the Internet,
|
||||||
|
@ -953,6 +956,13 @@ chroot ${target} grub-install --force --target=${bios_target} ${target_disk} >&2
|
||||||
chroot ${target} grub-mkconfig -o /boot/grub/grub.cfg >&2
|
chroot ${target} grub-mkconfig -o /boot/grub/grub.cfg >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
echo -n "Adding module blacklists... "
|
||||||
|
for module in ${target_module_blacklist[@]}; do
|
||||||
|
echo "blacklist ${module}" >> ${target}/etc/modprobe.d/blacklist.conf
|
||||||
|
done
|
||||||
|
chroot ${target} update-initramfs -u -k all >&2
|
||||||
|
echo "done."
|
||||||
|
|
||||||
DONE="y"
|
DONE="y"
|
||||||
|
|
||||||
seed_postinst() {
|
seed_postinst() {
|
||||||
|
|
Loading…
Reference in New Issue