Skip to content

Commit 0efcf4e

Browse files
committed
fix(dracut): force load vfio modules earlier
this should make them load before any gpu drivers
1 parent 276cfd9 commit 0efcf4e

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
@@ -22,10 +22,10 @@ func Set_Dracut() {
2222
}
2323

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

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

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

0 commit comments

Comments
 (0)