Skip to content

Commit

Permalink
Merge pull request #9819 from afbjorklund/virtualbox-amd64
Browse files Browse the repository at this point in the history
Debian installer: only recommend virtualbox when running on amd64
  • Loading branch information
medyagh authored Dec 8, 2020
2 parents 3fe2a3c + 71de27f commit a128bbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ out/minikube_$(DEB_VERSION)-0_%.deb: out/minikube-linux-%
chmod 0755 out/minikube_$(DEB_VERSION)/DEBIAN
sed -E -i 's/--VERSION--/'$(DEB_VERSION)'/g' out/minikube_$(DEB_VERSION)/DEBIAN/control
sed -E -i 's/--ARCH--/'$*'/g' out/minikube_$(DEB_VERSION)/DEBIAN/control
if [ "$*" = "amd64" ]; then \
sed -E -i 's/--RECOMMENDS--/virtualbox/' out/minikube_$(DEB_VERSION)/DEBIAN/control; \
else \
sed -E -i '/Recommends: --RECOMMENDS--/d' out/minikube_$(DEB_VERSION)/DEBIAN/control; \
fi
mkdir -p out/minikube_$(DEB_VERSION)/usr/bin
cp $< out/minikube_$(DEB_VERSION)/usr/bin/minikube
fakeroot dpkg-deb --build out/minikube_$(DEB_VERSION) $@
Expand Down
2 changes: 1 addition & 1 deletion installers/linux/deb/minikube_deb_template/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version: --VERSION--
Section: base
Priority: optional
Architecture: --ARCH--
Recommends: virtualbox
Recommends: --RECOMMENDS--
Maintainer: Thomas Strömberg <t+minikube@stromberg.org>
Description: Minikube
minikube is a tool that makes it easy to run Kubernetes locally.
Expand Down

0 comments on commit a128bbb

Please sign in to comment.