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
|
||||
fileio.AppendContent(fmt.Sprintf(" vfio_pci.ids=%s", strings.Join(gpu_IDs, ",")), config.Path.CMDLINE)
|
||||
}
|
||||
|
||||
// TODO: write functions to configure kernelstub and grub
|
||||
// TODO2: look into grubby
|
||||
// TODO3: if unknown bootloader, tell user what to add a kernel arguments
|
||||
func Set_KernelStub() {
|
||||
|
||||
// If the config folder for dracut exists in our configs
|
||||
if fileio.FileExist(config.Path.DRACUT) {
|
||||
// Add an extra kernel argument needed for dracut users
|
||||
fileio.AppendContent(" rd.driver.pre=vfio_pci", config.Path.CMDLINE)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue