1
- From eae9a401894ccbb9be1f94c1d23726fa0cb1c480 Mon Sep 17 00:00:00 2001
1
+ From b5389d2eadf0fa4a6892a6e69e4f127aa078aef6 Mon Sep 17 00:00:00 2001
2
2
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
4
4
Subject: [PATCH 01/20] *: sed `s/coreos/flatcar/`
5
5
6
6
Signed-off-by: Mathieu Tortuyaux <
[email protected] >
7
7
---
8
8
build | 4 +-
9
- build_blackbox_tests | 10 ++--
10
- build_for_container | 2 +-
11
9
config/config.go | 4 +-
12
10
config/config_test.go | 16 +++---
13
11
config/doc/generate.go | 2 +-
303
301
.../types/verification_test.go | 2 +-
304
302
config/validate/validate.go | 4 +-
305
303
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 +-
311
304
go.mod | 2 +-
312
305
internal/apply/apply.go | 30 +++++------
313
306
internal/distro/distro.go | 2 +-
437
430
tests/servers/servers.go | 2 +-
438
431
tests/validator.go | 4 +-
439
432
validate/main.go | 4 +-
440
- 432 files changed, 1141 insertions(+), 1141 deletions(-)
433
+ 425 files changed, 1130 insertions(+), 1130 deletions(-)
441
434
442
435
diff --git a/build b/build
443
436
index 9bf93d61..5abdcf5f 100755
@@ -461,40 +454,6 @@ index 9bf93d61..5abdcf5f 100755
461
454
462
455
eval $(go env)
463
456
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"
498
457
diff --git a/config/config.go b/config/config.go
499
458
index 47e82214..0cbdb15d 100644
500
459
--- a/config/config.go
@@ -4941,81 +4900,16 @@ index 18eea933..4f77f19c 100644
4941
4900
4942
4901
"github.com/coreos/vcontext/path"
4943
4902
"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
-
5009
4903
diff --git a/go.mod b/go.mod
5010
- index a1a25ec7..a22b3edb 100644
4904
+ index 63d73c98..f94bbafa 100644
5011
4905
--- a/go.mod
5012
4906
+++ b/go.mod
5013
4907
@@ -1,4 +1,4 @@
5014
4908
- module github.com/coreos/ignition/v2
5015
4909
+ module github.com/flatcar/ignition/v2
5016
4910
5017
- go 1.20
5018
-
4911
+ go 1.22.0
4912
+ toolchain go1.23.6
5019
4913
diff --git a/internal/apply/apply.go b/internal/apply/apply.go
5020
4914
index db48b8dc..b98fdf5d 100644
5021
4915
--- a/internal/apply/apply.go
@@ -5127,7 +5021,7 @@ index 0769d983..3067037f 100644
5127
5021
5128
5022
type ConfigFetcher struct {
5129
5023
diff --git a/internal/exec/engine.go b/internal/exec/engine.go
5130
- index 7e400d29..29610100 100644
5024
+ index f584e518..dcadb091 100644
5131
5025
--- a/internal/exec/engine.go
5132
5026
+++ b/internal/exec/engine.go
5133
5027
@@ -23,17 +23,17 @@ import (
@@ -5673,7 +5567,7 @@ index 7e880e3b..f1865474 100644
5673
5567
5674
5568
// Util encapsulates logging and destdir indirection for the util methods.
5675
5569
diff --git a/internal/main.go b/internal/main.go
5676
- index 5cebe6a4..ef421d9d 100644
5570
+ index 7e9e64c6..fa945f1b 100644
5677
5571
--- a/internal/main.go
5678
5572
+++ b/internal/main.go
5679
5573
@@ -22,15 +22,15 @@ import (
@@ -5812,13 +5706,13 @@ index daabc367..b4cb36a1 100644
5812
5706
// TODO: investigate alternative solutions (adding a Retryer to the
5813
5707
// aws.Config, fetching the region from an HTTP URL, handle the
5814
5708
diff --git a/internal/providers/azure/azure.go b/internal/providers/azure/azure.go
5815
- index c00a5f61..7472f105 100644
5709
+ index c947c3de..b426332d 100644
5816
5710
--- a/internal/providers/azure/azure.go
5817
5711
+++ b/internal/providers/azure/azure.go
5818
- @@ -25,13 +25,13 @@ import (
5819
- "path/filepath"
5712
+ @@ -26,13 +26,13 @@ import (
5820
5713
"time"
5821
5714
5715
+ "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
5822
5716
- "github.com/coreos/ignition/v2/config/shared/errors"
5823
5717
- "github.com/coreos/ignition/v2/config/v3_6_experimental/types"
5824
5718
- execUtil "github.com/coreos/ignition/v2/internal/exec/util"
@@ -5836,7 +5730,7 @@ index c00a5f61..7472f105 100644
5836
5730
5837
5731
"github.com/coreos/vcontext/report"
5838
5732
"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) {
5840
5734
// Azure IMDS expects some codes <500 to still be retried...
5841
5735
// Here, we match the cloud-init set.
5842
5736
// https://github.com/canonical/cloud-init/commit/c1a2047cf291
@@ -6212,7 +6106,7 @@ index 713f823e..a4ef1c25 100644
6212
6106
"github.com/coreos/vcontext/report"
6213
6107
)
6214
6108
diff --git a/internal/providers/proxmoxve/proxmoxve.go b/internal/providers/proxmoxve/proxmoxve.go
6215
- index 490bfe30..cbfe7c7d 100644
6109
+ index 5a00420a..dbe6cd98 100644
6216
6110
--- a/internal/providers/proxmoxve/proxmoxve.go
6217
6111
+++ b/internal/providers/proxmoxve/proxmoxve.go
6218
6112
@@ -28,13 +28,13 @@ import (
@@ -6580,7 +6474,7 @@ index b6e90988..9a37ffac 100644
6580
6474
"github.com/vincent-petithory/dataurl"
6581
6475
6582
6476
diff --git a/internal/resource/url.go b/internal/resource/url.go
6583
- index 8960c5d8..4f55dc2b 100644
6477
+ index 4d7a895d..354385fa 100644
6584
6478
--- a/internal/resource/url.go
6585
6479
+++ b/internal/resource/url.go
6586
6480
@@ -33,9 +33,9 @@ import (
@@ -6597,10 +6491,10 @@ index 8960c5d8..4f55dc2b 100644
6597
6491
"google.golang.org/api/option"
6598
6492
6599
6493
diff --git a/internal/resource/url_test.go b/internal/resource/url_test.go
6600
- index 77a39c93..415822fc 100644
6494
+ index ed1c2d6a..41c0e354 100644
6601
6495
--- a/internal/resource/url_test.go
6602
6496
+++ b/internal/resource/url_test.go
6603
- @@ -23 ,9 +23 ,9 @@ import (
6497
+ @@ -24 ,9 +24 ,9 @@ import (
6604
6498
6605
6499
"github.com/stretchr/testify/assert"
6606
6500
@@ -7544,5 +7438,5 @@ index bec64866..ed027604 100644
7544
7438
7545
7439
var (
7546
7440
- -
7547
- 2.44.2
7441
+ 2.45.3
7548
7442
0 commit comments