Add more comments and convert some variables to local variables
This commit is contained in:
parent
7f04af90d9
commit
2b52c744fe
5 changed files with 8 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue