mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 18:02:25 +08:00
Update build_backend.sh
This commit is contained in:
parent
249b004ac9
commit
eb4bec0729
1 changed files with 6 additions and 6 deletions
|
@ -35,12 +35,12 @@ if [ `grep $iommu /etc/default/grub|wc -l` = 0 ];then
|
|||
sed -i 's|quiet|quiet '$iommu'|' /etc/default/grub
|
||||
update-grub
|
||||
if [ `grep "vfio" /etc/modules|wc -l` = 0 ];then
|
||||
cat <<-EOF >> /etc/modules
|
||||
vfio
|
||||
vfio_iommu_type1
|
||||
vfio_pci
|
||||
vfio_virqfd
|
||||
EOF
|
||||
cat <<-EOF >> /etc/modules
|
||||
vfio
|
||||
vfio_iommu_type1
|
||||
vfio_pci
|
||||
vfio_virqfd
|
||||
EOF
|
||||
fi
|
||||
else
|
||||
_green "已设置硬件直通"
|
||||
|
|
Loading…
Reference in a new issue