mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-12-14 15:03:12 +00:00
add grub support
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@@ -33,10 +33,10 @@ func BootloaderByName(name string) (BootloaderProvider, error) {
|
||||
}
|
||||
|
||||
type BootloaderProvider interface {
|
||||
New(c Config) (Bootloader, error)
|
||||
New(c Config, r OSRelease) (Bootloader, error)
|
||||
Name() string
|
||||
}
|
||||
|
||||
type Bootloader interface {
|
||||
Setup(ctx context.Context, raw, path, cmdline string) error
|
||||
Setup(ctx context.Context, dev, root, cmdline string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user