Fixes a bug that would add rd.driver=vfio_pci to the kernel args twice
This commit is contained in:
parent
300ca653cc
commit
ca992bf864
1 changed files with 7 additions and 6 deletions
|
@ -57,10 +57,11 @@ func Set_Cmdline(gpu_IDs []string) {
|
||||||
|
|
||||||
// Add the GPU ids for vfio to the kernel arguments
|
// Add the GPU ids for vfio to the kernel arguments
|
||||||
fileio.AppendContent(fmt.Sprintf(" vfio_pci.ids=%s", strings.Join(gpu_IDs, ",")), config.Path.CMDLINE)
|
fileio.AppendContent(fmt.Sprintf(" vfio_pci.ids=%s", strings.Join(gpu_IDs, ",")), config.Path.CMDLINE)
|
||||||
|
}
|
||||||
// If the config folder for dracut exists in our configs
|
|
||||||
if fileio.FileExist(config.Path.DRACUT) {
|
// TODO: write functions to configure kernelstub and grub
|
||||||
// Add an extra kernel argument needed for dracut users
|
// TODO2: look into grubby
|
||||||
fileio.AppendContent(" rd.driver.pre=vfio_pci", config.Path.CMDLINE)
|
// TODO3: if unknown bootloader, tell user what to add a kernel arguments
|
||||||
}
|
func Set_KernelStub() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue