mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-12-14 15:03:12 +00:00
luks: do not support ubuntu < 20.04 and debian < 10
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@@ -45,6 +45,11 @@ func Convert(ctx context.Context, img string, opts ...ConvertOption) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if o.luksPassword != "" && !r.SupportsLUKS() {
|
||||
return fmt.Errorf("luks is not supported for %s %s", r.Name, r.Version)
|
||||
}
|
||||
|
||||
if !o.raw {
|
||||
d, err := NewDockerfile(r, img, o.password, o.networkManager, o.luksPassword != "")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user