From 1fc01fd0fb96dc2c123f60f728e8ccfa0a3ade18 Mon Sep 17 00:00:00 2001 From: Ani Balasubramaniam Date: Sat, 21 Mar 2020 13:19:27 -0700 Subject: [PATCH] Ensure that for OSes that specify ID_LIKE=debian, the DebianProvisioner is indicated as compatible (for ex: Raspbian) --- libmachine/provision/debian.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libmachine/provision/debian.go b/libmachine/provision/debian.go index ce8bcc5e17..506fe627ee 100644 --- a/libmachine/provision/debian.go +++ b/libmachine/provision/debian.go @@ -33,6 +33,10 @@ func (provisioner *DebianProvisioner) String() string { return "debian" } +func (provisioner *DebianProvisioner) CompatibleWithHost() bool { + return provisioner.OsReleaseInfo.ID == provisioner.OsReleaseID || provisioner.OsReleaseInfo.IDLike == provisioner.OsReleaseID +} + func (provisioner *DebianProvisioner) Package(name string, action pkgaction.PackageAction) error { var packageAction string