Compare commits

..

2 commits
2.1.3 ... main

Author SHA1 Message Date
jedrw
c1f11ce1c3 fix: avoid potential index out of range error if ls-iommu cannot find a vbios path
Signed-off-by: HikariKnight <2557889+HikariKnight@users.noreply.github.com>
2025-01-06 14:43:55 +01:00
HikariKnight
0efcf4ee19 fix(dracut): force load vfio modules earlier
this should make them load before any gpu drivers
2025-01-06 14:15:45 +01:00

View file

@ -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)