mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-12-14 15:03:12 +00:00
arm64 support with grub-efi
* build / convert: add `--platform` flag to support linux/amd64 & linux/arm64 * build: add `--pull` flag * run/hetzner: add `--type` flag to select server type * run/hetzner: add `--location` flag to select server location Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@@ -16,6 +16,7 @@ package d2vm
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
@@ -48,7 +49,10 @@ type grubBiosProvider struct {
|
||||
config Config
|
||||
}
|
||||
|
||||
func (g grubBiosProvider) New(c Config, r OSRelease) (Bootloader, error) {
|
||||
func (g grubBiosProvider) New(c Config, r OSRelease, arch string) (Bootloader, error) {
|
||||
if arch != "x86_64" {
|
||||
return nil, fmt.Errorf("grub-bios is only supported for amd64")
|
||||
}
|
||||
return grubBios{grubCommon: newGrubCommon(c, r)}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user