Skip to content

Commit

Permalink
overlay coreos-base/oem-ec2-compat: drop ec2 use
Browse files Browse the repository at this point in the history
while this ebuild will be dropped in the near future, we still need to
maintain openstack ebuild.

`flatcar-eks` was a runtime dependency of openstack/brightbox too. I
think it was a mistake ?

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Aug 30, 2023
1 parent 0e3d4f5 commit 7834df4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 65 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,15 @@ SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
IUSE="ec2 openstack brightbox"
REQUIRED_USE="^^ ( ec2 openstack brightbox )"

RDEPEND="
ec2? ( app-emulation/amazon-ssm-agent )
coreos-base/flatcar-eks
"
IUSE="openstack brightbox"
REQUIRED_USE="^^ ( openstack brightbox )"

# no source directory
S="${WORKDIR}"

src_prepare() {
default
if use ec2 ; then
ID="ami"
NAME="Amazon EC2"
HOME_URL="http://aws.amazon.com/ec2/"
elif use openstack ; then
if use openstack ; then
ID="openstack"
NAME="Openstack"
HOME_URL="https://www.openstack.org/"
Expand All @@ -49,20 +40,14 @@ src_prepare() {
src_install() {
insinto "/oem"
doins "${T}/oem-release"
if use ec2 ; then
newins "${FILESDIR}/grub-ec2.cfg" grub.cfg
elif use openstack ; then
if use openstack ; then
newins "${FILESDIR}/grub-openstack.cfg" grub.cfg
elif use brightbox ; then
newins "${FILESDIR}/grub-brightbox.cfg" grub.cfg
fi

insinto "/oem/base"
doins "${FILESDIR}/base/README"
if use ec2 ; then
newins "${FILESDIR}/base/base-ec2.ign" base.ign
fi

if use openstack; then
newins "${FILESDIR}/base/openstack.ign" base.ign
fi
Expand Down

0 comments on commit 7834df4

Please sign in to comment.