Skip to content

Commit

Permalink
fix: correct vfio_pci to vfio-pci in rd.driver.pre for dracut
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Dec 29, 2024
1 parent 4f51fd5 commit 276cfd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/configs/config_dracut.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 276cfd9

Please sign in to comment.