mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-08-03 10:02:40 +02:00
Update kernel module blacklist
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
@@ -25,9 +25,6 @@ while read -r KMOD; do
|
||||
sed -i "s/^${KMOD}$//g" blacklist.txt
|
||||
done < necessary.txt
|
||||
|
||||
# Delete empty lines
|
||||
sed -i '/^$/d' blacklist.txt
|
||||
|
||||
# Module filtering
|
||||
|
||||
while read -r KMOD; do
|
||||
@@ -38,6 +35,9 @@ while read -r KMOD; do
|
||||
sed -i "s/.*${KMOD}.*//g" blacklist.txt
|
||||
done < kmod-filter-all
|
||||
|
||||
# Delete empty lines
|
||||
sed -i '/^$/d' blacklist.txt
|
||||
|
||||
# Create final blacklist config
|
||||
while read -r KMOD; do
|
||||
echo "install ${KMOD} /bin/false" >> blacklist.conf
|
||||
|
@@ -5,5 +5,7 @@ nf_
|
||||
nvme
|
||||
pvpanic
|
||||
hv_
|
||||
sata_
|
||||
vbox
|
||||
xen-
|
||||
xt_
|
Reference in New Issue
Block a user