Skip to content

Commit b9ea88f

Browse files
authored
Merge pull request #2775 from flatcar/tormath1/ignition
sys-apps/ignition: pull release 2.21.0
2 parents ad49715 + 2c60a08 commit b9ea88f

23 files changed

+150
-252
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Ignition([2.21.0](https://coreos.github.io/ignition/release-notes/#ignition-2210-2025-03-13))

sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/files/0001-sed-s-coreos-flatcar.patch

Lines changed: 17 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
From eae9a401894ccbb9be1f94c1d23726fa0cb1c480 Mon Sep 17 00:00:00 2001
1+
From b5389d2eadf0fa4a6892a6e69e4f127aa078aef6 Mon Sep 17 00:00:00 2001
22
From: Mathieu Tortuyaux <[email protected]>
3-
Date: Thu, 24 Oct 2024 10:01:18 +0200
3+
Date: Wed, 26 Mar 2025 15:06:07 +0100
44
Subject: [PATCH 01/20] *: sed `s/coreos/flatcar/`
55

66
Signed-off-by: Mathieu Tortuyaux <[email protected]>
77
---
88
build | 4 +-
9-
build_blackbox_tests | 10 ++--
10-
build_for_container | 2 +-
119
config/config.go | 4 +-
1210
config/config_test.go | 16 +++---
1311
config/doc/generate.go | 2 +-
@@ -303,11 +301,6 @@ Signed-off-by: Mathieu Tortuyaux <[email protected]>
303301
.../types/verification_test.go | 2 +-
304302
config/validate/validate.go | 4 +-
305303
config/validate/validate_test.go | 2 +-
306-
dracut/30ignition/ignition-complete.target | 2 +-
307-
.../ignition-diskful-subsequent.target | 2 +-
308-
dracut/30ignition/ignition-diskful.target | 2 +-
309-
dracut/30ignition/ignition-subsequent.target | 2 +-
310-
dracut/30ignition/module-setup.sh | 2 +-
311304
go.mod | 2 +-
312305
internal/apply/apply.go | 30 +++++------
313306
internal/distro/distro.go | 2 +-
@@ -437,7 +430,7 @@ Signed-off-by: Mathieu Tortuyaux <[email protected]>
437430
tests/servers/servers.go | 2 +-
438431
tests/validator.go | 4 +-
439432
validate/main.go | 4 +-
440-
432 files changed, 1141 insertions(+), 1141 deletions(-)
433+
425 files changed, 1130 insertions(+), 1130 deletions(-)
441434

442435
diff --git a/build b/build
443436
index 9bf93d61..5abdcf5f 100755
@@ -461,40 +454,6 @@ index 9bf93d61..5abdcf5f 100755
461454

462455
eval $(go env)
463456

464-
diff --git a/build_blackbox_tests b/build_blackbox_tests
465-
index 9b3dd5b7..6527a3fb 100755
466-
--- a/build_blackbox_tests
467-
+++ b/build_blackbox_tests
468-
@@ -6,11 +6,11 @@ set -eu
469-
# tests will be run and where the stubs will be located, rely on the bb test caller setting up
470-
# their PATH to include them. We don't need to include `id` because it gets copied into the
471-
# system
472-
-GLDFLAGS="-X github.com/coreos/ignition/v2/internal/distro.useraddCmd=useradd-stub "
473-
-GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/distro.usermodCmd=usermod-stub "
474-
-GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/distro.userdelCmd=userdel-stub "
475-
-GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/distro.groupdelCmd=groupdel-stub "
476-
-GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/distro.blackboxTesting=true "
477-
+GLDFLAGS="-X github.com/flatcar/ignition/v2/internal/distro.useraddCmd=useradd-stub "
478-
+GLDFLAGS+="-X github.com/flatcar/ignition/v2/internal/distro.usermodCmd=usermod-stub "
479-
+GLDFLAGS+="-X github.com/flatcar/ignition/v2/internal/distro.userdelCmd=userdel-stub "
480-
+GLDFLAGS+="-X github.com/flatcar/ignition/v2/internal/distro.groupdelCmd=groupdel-stub "
481-
+GLDFLAGS+="-X github.com/flatcar/ignition/v2/internal/distro.blackboxTesting=true "
482-
483-
. ./build
484-
485-
diff --git a/build_for_container b/build_for_container
486-
index 7ddfc55d..147a5ef0 100755
487-
--- a/build_for_container
488-
+++ b/build_for_container
489-
@@ -12,7 +12,7 @@ if [ -z ${VERSION+a} ]; then
490-
VERSION=$(git describe --dirty --always)
491-
fi
492-
493-
-GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/version.Raw=${VERSION}"
494-
+GLDFLAGS+="-X github.com/flatcar/ignition/v2/internal/version.Raw=${VERSION}"
495-
496-
if [[ -n "$(git status -s)" ]]; then
497-
echo "git repo not clean"
498457
diff --git a/config/config.go b/config/config.go
499458
index 47e82214..0cbdb15d 100644
500459
--- a/config/config.go
@@ -4941,81 +4900,16 @@ index 18eea933..4f77f19c 100644
49414900

49424901
"github.com/coreos/vcontext/path"
49434902
"github.com/coreos/vcontext/report"
4944-
diff --git a/dracut/30ignition/ignition-complete.target b/dracut/30ignition/ignition-complete.target
4945-
index 6241b1d2..43a80147 100644
4946-
--- a/dracut/30ignition/ignition-complete.target
4947-
+++ b/dracut/30ignition/ignition-complete.target
4948-
@@ -5,7 +5,7 @@
4949-
# initrd.
4950-
[Unit]
4951-
Description=Ignition Complete
4952-
-Documentation=https://github.com/coreos/ignition
4953-
+Documentation=https://github.com/flatcar/ignition
4954-
ConditionPathExists=/etc/initrd-release
4955-
Before=initrd.target
4956-
4957-
diff --git a/dracut/30ignition/ignition-diskful-subsequent.target b/dracut/30ignition/ignition-diskful-subsequent.target
4958-
index 0adda1f5..e3b0b5f2 100644
4959-
--- a/dracut/30ignition/ignition-diskful-subsequent.target
4960-
+++ b/dracut/30ignition/ignition-diskful-subsequent.target
4961-
@@ -3,7 +3,7 @@
4962-
# boot disk and *aren't* doing the first boot.
4963-
[Unit]
4964-
Description=Ignition Subsequent Boot Disk Setup
4965-
-Documentation=https://github.com/coreos/ignition
4966-
+Documentation=https://github.com/flatcar/ignition
4967-
ConditionPathExists=/etc/initrd-release
4968-
Before=ignition-subsequent.target
4969-
4970-
diff --git a/dracut/30ignition/ignition-diskful.target b/dracut/30ignition/ignition-diskful.target
4971-
index c59b2175..a15ae54b 100644
4972-
--- a/dracut/30ignition/ignition-diskful.target
4973-
+++ b/dracut/30ignition/ignition-diskful.target
4974-
@@ -3,7 +3,7 @@
4975-
# Like ignition-complete.target, it only runs on first boot.
4976-
[Unit]
4977-
Description=Ignition Boot Disk Setup
4978-
-Documentation=https://github.com/coreos/ignition
4979-
+Documentation=https://github.com/flatcar/ignition
4980-
ConditionPathExists=/etc/initrd-release
4981-
Before=ignition-complete.target
4982-
4983-
diff --git a/dracut/30ignition/ignition-subsequent.target b/dracut/30ignition/ignition-subsequent.target
4984-
index 95ae838f..4c734e43 100644
4985-
--- a/dracut/30ignition/ignition-subsequent.target
4986-
+++ b/dracut/30ignition/ignition-subsequent.target
4987-
@@ -3,7 +3,7 @@
4988-
# different order on the Ignition boot versus "subsequent" boots.
4989-
[Unit]
4990-
Description=Subsequent (Not Ignition) boot complete
4991-
-Documentation=https://github.com/coreos/ignition
4992-
+Documentation=https://github.com/flatcar/ignition
4993-
ConditionPathExists=/etc/initrd-release
4994-
Before=initrd.target
4995-
4996-
diff --git a/dracut/30ignition/module-setup.sh b/dracut/30ignition/module-setup.sh
4997-
index 54867d10..298f1070 100755
4998-
--- a/dracut/30ignition/module-setup.sh
4999-
+++ b/dracut/30ignition/module-setup.sh
5000-
@@ -60,7 +60,7 @@ install() {
5001-
tpm2_createpolicy
5002-
5003-
# Required by s390x's z/VM installation.
5004-
- # Supporting https://github.com/coreos/ignition/pull/865
5005-
+ # Supporting https://github.com/flatcar/ignition/pull/865
5006-
if [[ ${DRACUT_ARCH:-$(uname -m)} == s390x ]]; then
5007-
inst_multiple chccwdev vmur zkey zkey-cryptsetup
5008-
50094903
diff --git a/go.mod b/go.mod
5010-
index a1a25ec7..a22b3edb 100644
4904+
index 63d73c98..f94bbafa 100644
50114905
--- a/go.mod
50124906
+++ b/go.mod
50134907
@@ -1,4 +1,4 @@
50144908
-module github.com/coreos/ignition/v2
50154909
+module github.com/flatcar/ignition/v2
50164910

5017-
go 1.20
5018-
4911+
go 1.22.0
4912+
toolchain go1.23.6
50194913
diff --git a/internal/apply/apply.go b/internal/apply/apply.go
50204914
index db48b8dc..b98fdf5d 100644
50214915
--- a/internal/apply/apply.go
@@ -5127,7 +5021,7 @@ index 0769d983..3067037f 100644
51275021

51285022
type ConfigFetcher struct {
51295023
diff --git a/internal/exec/engine.go b/internal/exec/engine.go
5130-
index 7e400d29..29610100 100644
5024+
index f584e518..dcadb091 100644
51315025
--- a/internal/exec/engine.go
51325026
+++ b/internal/exec/engine.go
51335027
@@ -23,17 +23,17 @@ import (
@@ -5673,7 +5567,7 @@ index 7e880e3b..f1865474 100644
56735567

56745568
// Util encapsulates logging and destdir indirection for the util methods.
56755569
diff --git a/internal/main.go b/internal/main.go
5676-
index 5cebe6a4..ef421d9d 100644
5570+
index 7e9e64c6..fa945f1b 100644
56775571
--- a/internal/main.go
56785572
+++ b/internal/main.go
56795573
@@ -22,15 +22,15 @@ import (
@@ -5812,13 +5706,13 @@ index daabc367..b4cb36a1 100644
58125706
// TODO: investigate alternative solutions (adding a Retryer to the
58135707
// aws.Config, fetching the region from an HTTP URL, handle the
58145708
diff --git a/internal/providers/azure/azure.go b/internal/providers/azure/azure.go
5815-
index c00a5f61..7472f105 100644
5709+
index c947c3de..b426332d 100644
58165710
--- a/internal/providers/azure/azure.go
58175711
+++ b/internal/providers/azure/azure.go
5818-
@@ -25,13 +25,13 @@ import (
5819-
"path/filepath"
5712+
@@ -26,13 +26,13 @@ import (
58205713
"time"
58215714

5715+
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
58225716
- "github.com/coreos/ignition/v2/config/shared/errors"
58235717
- "github.com/coreos/ignition/v2/config/v3_6_experimental/types"
58245718
- execUtil "github.com/coreos/ignition/v2/internal/exec/util"
@@ -5836,7 +5730,7 @@ index c00a5f61..7472f105 100644
58365730

58375731
"github.com/coreos/vcontext/report"
58385732
"golang.org/x/sys/unix"
5839-
@@ -115,7 +115,7 @@ func fetchFromIMDS(f *resource.Fetcher) ([]byte, error) {
5733+
@@ -133,7 +133,7 @@ func fetchFromIMDS(f *resource.Fetcher) ([]byte, error) {
58405734
// Azure IMDS expects some codes <500 to still be retried...
58415735
// Here, we match the cloud-init set.
58425736
// https://github.com/canonical/cloud-init/commit/c1a2047cf291
@@ -6212,7 +6106,7 @@ index 713f823e..a4ef1c25 100644
62126106
"github.com/coreos/vcontext/report"
62136107
)
62146108
diff --git a/internal/providers/proxmoxve/proxmoxve.go b/internal/providers/proxmoxve/proxmoxve.go
6215-
index 490bfe30..cbfe7c7d 100644
6109+
index 5a00420a..dbe6cd98 100644
62166110
--- a/internal/providers/proxmoxve/proxmoxve.go
62176111
+++ b/internal/providers/proxmoxve/proxmoxve.go
62186112
@@ -28,13 +28,13 @@ import (
@@ -6580,7 +6474,7 @@ index b6e90988..9a37ffac 100644
65806474
"github.com/vincent-petithory/dataurl"
65816475

65826476
diff --git a/internal/resource/url.go b/internal/resource/url.go
6583-
index 8960c5d8..4f55dc2b 100644
6477+
index 4d7a895d..354385fa 100644
65846478
--- a/internal/resource/url.go
65856479
+++ b/internal/resource/url.go
65866480
@@ -33,9 +33,9 @@ import (
@@ -6597,10 +6491,10 @@ index 8960c5d8..4f55dc2b 100644
65976491
"google.golang.org/api/option"
65986492

65996493
diff --git a/internal/resource/url_test.go b/internal/resource/url_test.go
6600-
index 77a39c93..415822fc 100644
6494+
index ed1c2d6a..41c0e354 100644
66016495
--- a/internal/resource/url_test.go
66026496
+++ b/internal/resource/url_test.go
6603-
@@ -23,9 +23,9 @@ import (
6497+
@@ -24,9 +24,9 @@ import (
66046498

66056499
"github.com/stretchr/testify/assert"
66066500

@@ -7544,5 +7438,5 @@ index bec64866..ed027604 100644
75447438

75457439
var (
75467440
--
7547-
2.44.2
7441+
2.45.3
75487442

sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/files/0002-config-add-ignition-translation.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 09a77afae8ede189033837888062553ff18e7290 Mon Sep 17 00:00:00 2001
1+
From 42358eaa661444c3d5d07c4b52f8879372adaacf Mon Sep 17 00:00:00 2001
22
From: Mathieu Tortuyaux <[email protected]>
33
Date: Mon, 26 Sep 2022 12:12:04 +0200
44
Subject: [PATCH 02/20] config: add ignition translation
@@ -2621,5 +2621,5 @@ index 00000000..e81f6bed
26212621
+ }
26222622
+}
26232623
--
2624-
2.44.2
2624+
2.45.3
26252625

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From b736afa1321345564c6ef6675a980b3187a085b1 Mon Sep 17 00:00:00 2001
1+
From 99d75703026de8787b4bb83e77bd07d1f6d730b9 Mon Sep 17 00:00:00 2001
22
From: Mathieu Tortuyaux <[email protected]>
3-
Date: Thu, 24 Oct 2024 10:19:08 +0200
3+
Date: Wed, 26 Mar 2025 15:10:08 +0100
44
Subject: [PATCH 03/20] mod: add flatcar/[email protected]
55

66
it's required for Ignition conversion.
@@ -11,35 +11,37 @@ Signed-off-by: Mathieu Tortuyaux <[email protected]>
1111
1 file changed, 4 insertions(+)
1212

1313
diff --git a/go.mod b/go.mod
14-
index a22b3edb..11ea000e 100644
14+
index f94bbafa..2afaf4ae 100644
1515
--- a/go.mod
1616
+++ b/go.mod
17-
@@ -11,6 +11,7 @@ require (
17+
@@ -14,6 +14,7 @@ require (
1818
github.com/coreos/go-semver v0.3.1
1919
github.com/coreos/go-systemd/v22 v22.5.0
2020
github.com/coreos/vcontext v0.0.0-20230201181013-d72178a18687
2121
+ github.com/flatcar/ignition v0.36.2
2222
github.com/google/renameio/v2 v2.0.0
2323
github.com/google/uuid v1.6.0
2424
github.com/mdlayher/vsock v1.2.1
25-
@@ -32,7 +33,9 @@ require (
26-
cloud.google.com/go/auth v0.6.1 // indirect
27-
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
28-
cloud.google.com/go/iam v1.1.8 // indirect
25+
@@ -43,9 +44,11 @@ require (
26+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0 // indirect
27+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1 // indirect
28+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 // indirect
2929
+ github.com/ajeddeloh/go-json v0.0.0-20160803184958-73d058cf8437 // indirect
30+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
31+
github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 // indirect
3032
github.com/coreos/go-json v0.0.0-20230131223807-18775e0fb4fb // indirect
3133
+ github.com/coreos/go-systemd v0.0.0-20181031085051-9002847aa142 // indirect
3234
github.com/davecgh/go-spew v1.1.1 // indirect
33-
github.com/felixge/httpsnoop v1.0.4 // indirect
34-
github.com/go-logr/logr v1.4.1 // indirect
35-
@@ -53,6 +56,7 @@ require (
36-
go.opentelemetry.io/otel v1.24.0 // indirect
37-
go.opentelemetry.io/otel/metric v1.24.0 // indirect
38-
go.opentelemetry.io/otel/trace v1.24.0 // indirect
35+
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
36+
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
37+
@@ -75,6 +78,7 @@ require (
38+
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
39+
go.opentelemetry.io/otel/sdk/metric v1.32.0 // indirect
40+
go.opentelemetry.io/otel/trace v1.34.0 // indirect
3941
+ go4.org v0.0.0-20160314031811-03efcb870d84 // indirect
40-
golang.org/x/crypto v0.28.0 // indirect
41-
golang.org/x/sync v0.8.0 // indirect
42-
golang.org/x/text v0.19.0 // indirect
42+
golang.org/x/crypto v0.36.0 // indirect
43+
golang.org/x/sync v0.12.0 // indirect
44+
golang.org/x/text v0.23.0 // indirect
4345
--
44-
2.44.2
46+
2.45.3
4547

0 commit comments

Comments
 (0)