From e5447e49d3e40c9f0f1bbed9b5d62b97a66ca06a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:58 -0400 Subject: [PATCH] Add module blacklisting to installer --- templates/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/install.sh b/templates/install.sh index f101142..3f10367 100755 --- a/templates/install.sh +++ b/templates/install.sh @@ -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) 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 # 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, @@ -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 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" seed_postinst() {