Skip to content

Commit 9740e38

Browse files
authored
Only update iommu grub on Intel host (#302)
* fix(iommu) Address always truthy value for intel_iommu addition
1 parent a586263 commit 9740e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/pcie_passthrough.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
dest: /etc/default/grub
55
marker: "# {mark}: IOMMU default grub configuration (managed by ansible)."
66
content: "\
7-
{% if '\"GenuineIntel\" in ansible_processor | unique' %}GRUB_CMDLINE_LINUX=\"$GRUB_CMDLINE_LINUX intel_iommu=on\"\n{% endif %}\
7+
{% if 'GenuineIntel' in ansible_processor %}GRUB_CMDLINE_LINUX=\"$GRUB_CMDLINE_LINUX intel_iommu=on\"\n{% endif %}\
88
{% if (pve_iommu_passthrough_mode | bool) %}GRUB_CMDLINE_LINUX=\"$GRUB_CMDLINE_LINUX iommu=pt\"\n{% endif %}\
99
{% if (pve_mediated_devices_enabled | bool) %}GRUB_CMDLINE_LINUX=\"$GRUB_CMDLINE_LINUX i915.enable_gvt=1 i915.enable_guc=0\"\n{% endif %}\
1010
{% if (pve_pci_device_ids | length > 0) %}GRUB_CMDLINE_LINUX=\"$GRUB_CMDLINE_LINUX vfio-pci.ids={% for k in pve_pci_device_ids %}{{ k.id }}{% if k != (pve_pci_device_ids | last) %},{% endif %}{% endfor %}\"{% endif %}"

0 commit comments

Comments
 (0)