Add blacklisting in installer

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:58 -04:00
parent 8ba9c8c5bd
commit 30255292e2
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"
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
echo -n "Copying PVC node installer script template... "
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
;;
esac
echo "done."
echo -n "Setting temporary 'root' password... "
echo "root:${root_password}" | chroot ${target} chpasswd >&2