Update customizable_post_install.sh

This commit is contained in:
MacRimi 2025-06-21 19:09:10 +02:00 committed by GitHub
parent e098b63beb
commit 40e36b3203
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1844,7 +1844,8 @@ enable_vfio_iommu() {
msg_ok "$(translate "IOMMU already configured in /etc/kernel/cmdline")" msg_ok "$(translate "IOMMU already configured in /etc/kernel/cmdline")"
else else
cp "$cmdline_file" "${cmdline_file}.bak" cp "$cmdline_file" "${cmdline_file}.bak"
sed -i "s|\"$| $iommu_param iommu=pt|" "$cmdline_file" # sed -i "s|\"$| $iommu_param iommu=pt|" "$cmdline_file"
sed -i "s|\s*$| $iommu_param iommu=pt|" "$cmdline_file"
msg_ok "$(translate "IOMMU parameters added to /etc/kernel/cmdline")" msg_ok "$(translate "IOMMU parameters added to /etc/kernel/cmdline")"
fi fi
else else
@ -1884,7 +1885,7 @@ enable_vfio_iommu() {
msg_info "$(translate "Updating initramfs, GRUB, and EFI boot, patience...")" msg_info "$(translate "Updating initramfs, GRUB, and EFI boot, patience...")"
update-initramfs -u -k all > /dev/null 2>&1 update-initramfs -u -k all > /dev/null 2>&1
if [[ "$uses_zfs" == true ]]; then if [[ "$uses_zfs" == true ]]; then
pve-efiboot-tool refresh > /dev/null 2>&1 proxmox-boot-tool refresh > /dev/null 2>&1
else else
update-grub > /dev/null 2>&1 update-grub > /dev/null 2>&1
fi fi