...
1
2
3 package remotevm
4
5 import (
6 "github.com/Microsoft/hcsshim/internal/vmservice"
7 )
8
9 func (uvmb *utilityVMBuilder) SetLinuxKernelDirectBoot(kernel, initRD, cmd string) error {
10 uvmb.config.BootConfig = &vmservice.VMConfig_DirectBoot{
11 DirectBoot: &vmservice.DirectBoot{
12 KernelPath: kernel,
13 InitrdPath: initRD,
14 KernelCmdline: cmd,
15 },
16 }
17 return nil
18 }
19
20 func (uvmb *utilityVMBuilder) SetUEFIBoot(firmware, devPath, args string) error {
21 uvmb.config.BootConfig = &vmservice.VMConfig_Uefi{
22 Uefi: &vmservice.UEFI{
23 FirmwarePath: firmware,
24 DevicePath: devPath,
25 OptionalData: args,
26 },
27 }
28 return nil
29 }
30
View as plain text