Add more comments and convert some variables to local variables

This commit is contained in:
HikariKnight 2022-02-27 21:29:29 +01:00
parent 7f04af90d9
commit 2b52c744fe
No known key found for this signature in database
GPG key ID: E8B239063B022F5A
5 changed files with 8 additions and 5 deletions

View file

@ -63,9 +63,11 @@ then
rm -r "$SCRIPTDIR/config"
fi
# Get the CPU Vendor
CPU_VENDOR=$(cat /proc/cpuinfo | grep vendor | head -1 | cut -f 2 | cut -d " " -f 2)
CMDLINE="iommu=pt"
# Adjust our kernel_args based on cpu vendor
if [ "$CPU_VENDOR" == "GenuineIntel" ];
then
CMDLINE="$CMDLINE intel_iommu=on"