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