Update build_backend.sh

This commit is contained in:
spiritLHLS 2023-04-12 09:47:07 +08:00 committed by GitHub
parent eb4bec0729
commit a0fe4ebe82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,12 +35,10 @@ if [ `grep $iommu /etc/default/grub|wc -l` = 0 ];then
sed -i 's|quiet|quiet '$iommu'|' /etc/default/grub sed -i 's|quiet|quiet '$iommu'|' /etc/default/grub
update-grub update-grub
if [ `grep "vfio" /etc/modules|wc -l` = 0 ];then if [ `grep "vfio" /etc/modules|wc -l` = 0 ];then
cat <<-EOF >> /etc/modules echo 'vfio
vfio
vfio_iommu_type1 vfio_iommu_type1
vfio_pci vfio_pci
vfio_virqfd vfio_virqfd' >> /etc/modules
EOF
fi fi
else else
_green "已设置硬件直通" _green "已设置硬件直通"