From 276cfd953aad7a4f8f231e8fc17031195997d35b Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Sun, 29 Dec 2024 05:34:03 +0100 Subject: [PATCH] fix: correct vfio_pci to vfio-pci in rd.driver.pre for dracut --- internal/configs/config_dracut.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/configs/config_dracut.go b/internal/configs/config_dracut.go index 70f837e..1aa0f23 100644 --- a/internal/configs/config_dracut.go +++ b/internal/configs/config_dracut.go @@ -31,9 +31,9 @@ func Set_Dracut() { kernel_args := fileio.ReadFile(config.Path.CMDLINE) // If the kernel argument is not already in the file - if !strings.Contains(kernel_args, "rd.driver.pre=vfio_pci") { + if !strings.Contains(kernel_args, "rd.driver.pre=vfio-pci") { // Add to our kernel arguments file that vfio_pci should load early (dracut does this using kernel arguments) - fileio.AppendContent(" rd.driver.pre=vfio_pci", config.Path.CMDLINE) + fileio.AppendContent(" rd.driver.pre=vfio-pci", config.Path.CMDLINE) } // Make a backup of dracutConf if there is one there