Skip to content

Commit

Permalink
fix(dracut): force load vfio modules earlier
Browse files Browse the repository at this point in the history
this should make them load before any gpu drivers
  • Loading branch information
HikariKnight committed Jan 6, 2025
1 parent 276cfd9 commit 0efcf4e
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 @@ -22,10 +22,10 @@ func Set_Dracut() {
}

// Write to logger
logger.Printf("Writing to %s:\nadd_drivers+=\" %s \"\n", dracutConf, strings.Join(vfio_modules(), " "))
logger.Printf("Writing to %s:\nforce_drivers+=\" %s \"\n", dracutConf, strings.Join(vfio_modules(), " "))

// Write the dracut config file
fileio.AppendContent(fmt.Sprintf("add_drivers+=\" %s \"\n", strings.Join(vfio_modules(), " ")), dracutConf)
fileio.AppendContent(fmt.Sprintf("force_drivers+=\" %s \"\n", strings.Join(vfio_modules(), " ")), dracutConf)

// Get the current kernel arguments we have generated
kernel_args := fileio.ReadFile(config.Path.CMDLINE)
Expand Down

0 comments on commit 0efcf4e

Please sign in to comment.