From 26d90b38ce6f1a299b5ccb529031ad5741293a73 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Wed, 14 Jan 2026 10:46:16 +0000 Subject: [PATCH] sys-apps/ignition: Add live ebuild We often do development work on Ignition, so this is useful to have. The ebuild will not work with Flatcar as-is because it lacks our patches, but it can still be used in conjunction with flatcar_workon. We cannot apply the patches unconditionally because they are unlikely to apply. They do not apply right now. Signed-off-by: James Le Cuirot --- .../sys-apps/ignition/ignition-2.24.0.ebuild | 67 +----------------- .../sys-apps/ignition/ignition-9999.ebuild | 69 +++++++++++++++++++ .../sys-apps/ignition/metadata.xml | 3 + 3 files changed, 73 insertions(+), 66 deletions(-) mode change 100644 => 120000 sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-2.24.0.ebuild create mode 100644 sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-9999.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-2.24.0.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-2.24.0.ebuild deleted file mode 100644 index 342d0f58555..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-2.24.0.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright (c) 2015 CoreOS, Inc.. All rights reserved. -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -inherit go-module - -KEYWORDS="amd64 arm64" - -DESCRIPTION="Pre-boot provisioning utility" -HOMEPAGE="https://github.com/coreos/ignition" -SRC_URI="https://github.com/coreos/ignition/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0/${PVR}" -IUSE="" - -# need util-linux for libblkid at compile time -DEPEND="sys-apps/util-linux" - -RDEPEND=" - sys-apps/coreutils - sys-apps/gptfdisk - sys-apps/shadow - sys-apps/systemd - sys-fs/btrfs-progs - sys-fs/dosfstools - sys-fs/e2fsprogs - sys-fs/mdadm - sys-fs/xfsprogs -" - -RDEPEND+="${DEPEND}" - -PATCHES=( - "${FILESDIR}/0001-sed-s-coreos-flatcar.patch" - "${FILESDIR}/0002-config-add-ignition-translation.patch" - "${FILESDIR}/0003-mod-add-flatcar-ignition-0.36.2.patch" - "${FILESDIR}/0004-config-v3_6-convert-ignition-2.x-to-3.x.patch" - "${FILESDIR}/0005-vendor-go-mod-vendor.patch" - "${FILESDIR}/0006-internal-prv-cmdline-backport-flatcar-patch.patch" - "${FILESDIR}/0007-provider-qemu-apply-fw_cfg-patch.patch" - "${FILESDIR}/0008-config-3_6-test-add-ignition-2.x-test-cases.patch" - "${FILESDIR}/0009-internal-disk-fs-ignore-fs-format-mismatches-for-the.patch" - "${FILESDIR}/0010-VMware-Fix-guestinfo.-.config.data-and-.config.url-v.patch" - "${FILESDIR}/0011-config-version-handle-configuration-version-1.patch" - "${FILESDIR}/0012-config-util-add-cloud-init-detection-to-initial-pars.patch" - "${FILESDIR}/0013-Revert-drop-OEM-URI-support.patch" - "${FILESDIR}/0014-internal-resource-url-support-btrfs-as-OEM-partition.patch" - "${FILESDIR}/0015-translation-support-OEM-and-oem.patch" - "${FILESDIR}/0016-revert-internal-oem-drop-noop-OEMs.patch" - "${FILESDIR}/0017-docs-Add-re-added-platforms-to-docs-to-pass-tests.patch" - "${FILESDIR}/0018-usr-share-oem-oem.patch" - "${FILESDIR}/0019-internal-exec-stages-mount-Mount-oem.patch" -) - -src_compile() { - ego build \ - -ldflags "-X github.com/flatcar/ignition/v2/internal/version.Raw=${PV} -X github.com/flatcar/ignition/v2/internal/distro.selinuxRelabel=false" \ - "${S}/internal/main.go" -} - -src_install() { - newbin "${S}/main" "${PN}" - - dosym "/usr/bin/${PN}" "/usr/libexec/${PN}-rmcfg" -} diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-2.24.0.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-2.24.0.ebuild new file mode 120000 index 00000000000..edd426c8cd1 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-2.24.0.ebuild @@ -0,0 +1 @@ +ignition-9999.ebuild \ No newline at end of file diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-9999.ebuild new file mode 100644 index 00000000000..e565a5137eb --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/ignition-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright (c) 2015 CoreOS, Inc.. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Pre-boot provisioning utility" +HOMEPAGE="https://github.com/coreos/ignition" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/coreos/ignition.git" + inherit git-r3 +else + SRC_URI="https://github.com/coreos/ignition/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 arm64" + + PATCHES=( + "${FILESDIR}/0001-sed-s-coreos-flatcar.patch" + "${FILESDIR}/0002-config-add-ignition-translation.patch" + "${FILESDIR}/0003-mod-add-flatcar-ignition-0.36.2.patch" + "${FILESDIR}/0004-config-v3_6-convert-ignition-2.x-to-3.x.patch" + "${FILESDIR}/0005-vendor-go-mod-vendor.patch" + "${FILESDIR}/0006-internal-prv-cmdline-backport-flatcar-patch.patch" + "${FILESDIR}/0007-provider-qemu-apply-fw_cfg-patch.patch" + "${FILESDIR}/0008-config-3_6-test-add-ignition-2.x-test-cases.patch" + "${FILESDIR}/0009-internal-disk-fs-ignore-fs-format-mismatches-for-the.patch" + "${FILESDIR}/0010-VMware-Fix-guestinfo.-.config.data-and-.config.url-v.patch" + "${FILESDIR}/0011-config-version-handle-configuration-version-1.patch" + "${FILESDIR}/0012-config-util-add-cloud-init-detection-to-initial-pars.patch" + "${FILESDIR}/0013-Revert-drop-OEM-URI-support.patch" + "${FILESDIR}/0014-internal-resource-url-support-btrfs-as-OEM-partition.patch" + "${FILESDIR}/0015-translation-support-OEM-and-oem.patch" + "${FILESDIR}/0016-revert-internal-oem-drop-noop-OEMs.patch" + "${FILESDIR}/0017-docs-Add-re-added-platforms-to-docs-to-pass-tests.patch" + "${FILESDIR}/0018-usr-share-oem-oem.patch" + "${FILESDIR}/0019-internal-exec-stages-mount-Mount-oem.patch" + ) +fi + +LICENSE="Apache-2.0" +SLOT="0/${PVR}" + +# need util-linux for libblkid at compile time +DEPEND="sys-apps/util-linux" + +RDEPEND=" + ${DEPEND} + sys-apps/coreutils + sys-apps/gptfdisk + sys-apps/shadow + sys-apps/systemd + sys-fs/btrfs-progs + sys-fs/dosfstools + sys-fs/e2fsprogs + sys-fs/mdadm + sys-fs/xfsprogs +" + +src_compile() { + ego build \ + -ldflags "-X github.com/flatcar/ignition/v2/internal/version.Raw=${PV} -X github.com/flatcar/ignition/v2/internal/distro.selinuxRelabel=false" \ + "${S}"/internal/main.go +} + +src_install() { + newbin "${S}"/main ${PN} + dosym -r /usr/bin/${PN} /usr/libexec/${PN}-rmcfg +} diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/metadata.xml b/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/metadata.xml index 097975e3adc..e7330c51065 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/metadata.xml +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/metadata.xml @@ -1,4 +1,7 @@ + + coreos/ignition +