Documentation ¶
Index ¶
- func Configure_Grub2()
- func CopyToSystem(isRoot bool, conffile, sysfile string)
- func DisableVFIOVideo(i int)
- func GenerateVBIOSDumper(vbios_path string)
- func InitConfigs()
- func Set_Cmdline(gpu_IDs []string)
- func Set_Dracut()
- func Set_Grub2(isRoot bool) error
- func Set_Grubby(isRoot bool) string
- func Set_KernelStub(isRoot bool)
- func Set_Mkinitcpio()
- func Set_Modprobe(gpu_IDs []string)
- type Config
- type Path
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure_Grub2 ¶
func Configure_Grub2()
func CopyToSystem ¶
CopyToSystem copies a file to the system.
func DisableVFIOVideo ¶
func DisableVFIOVideo(i int)
This function adds the disable vfio video output on host option to the config The function will use the given int as the value for the option
func GenerateVBIOSDumper ¶
func GenerateVBIOSDumper(vbios_path string)
Generates a script file named dump_vbios.sh and places it inside the utils folder. This script has to be run without a display manager or display server running
func InitConfigs ¶
func InitConfigs()
InitConfigs constructs the empty config files and folders based on what exists on the system
func Set_Cmdline ¶
func Set_Cmdline(gpu_IDs []string)
This function adds the default kernel arguments we want to the config/cmdline file This gives us a file we can read all the kernel arguments this system needs in case of an unknown bootloader
func Set_Dracut ¶
func Set_Dracut()
Set_Dracut writes a dracut configuration file for `/etc/dracut.conf.d/`.
func Set_Grubby ¶
Set_Grubby configures grub2 and/or systemd-boot using grubby
func Set_KernelStub ¶
func Set_KernelStub(isRoot bool)
Set_KernelStub configures systemd-boot using kernelstub.
func Set_Mkinitcpio ¶
func Set_Mkinitcpio()
Set_Mkinitcpio copies the content of /etc/mkinitcpio.conf to the config folder and does an inline replace/insert on the MODULES=() line
func Set_Modprobe ¶
func Set_Modprobe(gpu_IDs []string)
This function generates a modprobe file for /etc/modprobe.d/