Add blacklisting in installer

This commit is contained in:
Joshua Boniface 2021-12-14 19:29:23 -05:00
parent 326c1dff5c
commit 1d0dd0fab7
3 changed files with 7 additions and 1 deletions

View File

@ -122,6 +122,12 @@ cp ../../templates/theme.txt config/includes.chroot/boot/grub/theme.txt || fail
cp ../../templates/splash.png config/includes.chroot/splash.png || fail "Failed to copy critical template file" cp ../../templates/splash.png config/includes.chroot/splash.png || fail "Failed to copy critical template file"
echo "done." echo "done."
# Install module blacklist template
echo -n "Copying module blacklist template... "
mkdir -p config/includes.chroot/etc/modprobe.d
cp ../../templates/blacklist.conf config/includes.chroot/etc/modprobe.d/blacklist.conf || fail "Failed to copy critical template file"
echo "done."
# Install install.sh script # Install install.sh script
echo -n "Copying PVC node installer script template... " echo -n "Copying PVC node installer script template... "
cp ../../templates/install.sh config/includes.chroot/install.sh || fail "Failed to copy critical template file" cp ../../templates/install.sh config/includes.chroot/install.sh || fail "Failed to copy critical template file"

1
templates/blacklist.conf Normal file
View File

@ -0,0 +1 @@
blacklist hpwdt

View File

@ -869,7 +869,6 @@ EOF
true true
;; ;;
esac esac
echo "done."
echo -n "Setting temporary 'root' password... " echo -n "Setting temporary 'root' password... "
echo "root:${root_password}" | chroot ${target} chpasswd >&2 echo "root:${root_password}" | chroot ${target} chpasswd >&2