From 40e36b3203d16da2522f610370f7b2c8334cacaf Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Sat, 21 Jun 2025 19:09:10 +0200 Subject: [PATCH] Update customizable_post_install.sh --- scripts/customizable_post_install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/customizable_post_install.sh b/scripts/customizable_post_install.sh index 6acb0d4..75de19a 100644 --- a/scripts/customizable_post_install.sh +++ b/scripts/customizable_post_install.sh @@ -1844,7 +1844,8 @@ enable_vfio_iommu() { msg_ok "$(translate "IOMMU already configured in /etc/kernel/cmdline")" else 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")" fi else @@ -1884,7 +1885,7 @@ enable_vfio_iommu() { msg_info "$(translate "Updating initramfs, GRUB, and EFI boot, patience...")" update-initramfs -u -k all > /dev/null 2>&1 if [[ "$uses_zfs" == true ]]; then - pve-efiboot-tool refresh > /dev/null 2>&1 + proxmox-boot-tool refresh > /dev/null 2>&1 else update-grub > /dev/null 2>&1 fi