Skip to content

Commit 276cfd9

Browse files
committed
fix: correct vfio_pci to vfio-pci in rd.driver.pre for dracut
1 parent 4f51fd5 commit 276cfd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/configs/config_dracut.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ func Set_Dracut() {
3131
kernel_args := fileio.ReadFile(config.Path.CMDLINE)
3232

3333
// If the kernel argument is not already in the file
34-
if !strings.Contains(kernel_args, "rd.driver.pre=vfio_pci") {
34+
if !strings.Contains(kernel_args, "rd.driver.pre=vfio-pci") {
3535
// Add to our kernel arguments file that vfio_pci should load early (dracut does this using kernel arguments)
36-
fileio.AppendContent(" rd.driver.pre=vfio_pci", config.Path.CMDLINE)
36+
fileio.AppendContent(" rd.driver.pre=vfio-pci", config.Path.CMDLINE)
3737
}
3838

3939
// Make a backup of dracutConf if there is one there

0 commit comments

Comments
 (0)