forked from pool/ignition
Compare commits
16 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e4e7a9df3a | |||
| 5ba4662b72 | |||
| 1541cbe98b | |||
| 2cb3902c8d | |||
| 3d2df31d4c | |||
| d8321a2645 | |||
| 606b6b27a4 | |||
| 6d03d6f8ab | |||
| ea0f423a55 | |||
| 65b96e46a3 | |||
| 3ef6672689 | |||
| 94091a4fad | |||
| ddb6231bb8 | |||
| 9508674cb3 | |||
| 9e7682d840 | |||
| 69f59feb61 |
@@ -6,10 +6,10 @@ Upstream: Ticket opened [gh#coreos/ignition#890]
|
||||
e.g. to mount several subvolumes from a Btrfs device or bind mounting
|
||||
the device to multiple places, by also adding the path to the key.
|
||||
|
||||
Index: ignition-2.16.2/config/v3_1/types/filesystem.go
|
||||
Index: ignition-2.20.0/config/v3_1/types/filesystem.go
|
||||
===================================================================
|
||||
--- ignition-2.16.2.orig/config/v3_1/types/filesystem.go
|
||||
+++ ignition-2.16.2/config/v3_1/types/filesystem.go
|
||||
--- ignition-2.20.0.orig/config/v3_1/types/filesystem.go
|
||||
+++ ignition-2.20.0/config/v3_1/types/filesystem.go
|
||||
@@ -23,6 +23,9 @@ import (
|
||||
)
|
||||
|
||||
@@ -20,10 +20,10 @@ Index: ignition-2.16.2/config/v3_1/types/filesystem.go
|
||||
return f.Device
|
||||
}
|
||||
|
||||
Index: ignition-2.16.2/config/v3_2/types/filesystem.go
|
||||
Index: ignition-2.20.0/config/v3_2/types/filesystem.go
|
||||
===================================================================
|
||||
--- ignition-2.16.2.orig/config/v3_2/types/filesystem.go
|
||||
+++ ignition-2.16.2/config/v3_2/types/filesystem.go
|
||||
--- ignition-2.20.0.orig/config/v3_2/types/filesystem.go
|
||||
+++ ignition-2.20.0/config/v3_2/types/filesystem.go
|
||||
@@ -23,6 +23,9 @@ import (
|
||||
)
|
||||
|
||||
@@ -34,10 +34,10 @@ Index: ignition-2.16.2/config/v3_2/types/filesystem.go
|
||||
return f.Device
|
||||
}
|
||||
|
||||
Index: ignition-2.16.2/config/v3_3/types/filesystem.go
|
||||
Index: ignition-2.20.0/config/v3_3/types/filesystem.go
|
||||
===================================================================
|
||||
--- ignition-2.16.2.orig/config/v3_3/types/filesystem.go
|
||||
+++ ignition-2.16.2/config/v3_3/types/filesystem.go
|
||||
--- ignition-2.20.0.orig/config/v3_3/types/filesystem.go
|
||||
+++ ignition-2.20.0/config/v3_3/types/filesystem.go
|
||||
@@ -23,6 +23,9 @@ import (
|
||||
)
|
||||
|
||||
@@ -48,10 +48,10 @@ Index: ignition-2.16.2/config/v3_3/types/filesystem.go
|
||||
return f.Device
|
||||
}
|
||||
|
||||
Index: ignition-2.16.2/config/v3_4/types/filesystem.go
|
||||
Index: ignition-2.20.0/config/v3_4/types/filesystem.go
|
||||
===================================================================
|
||||
--- ignition-2.16.2.orig/config/v3_4/types/filesystem.go
|
||||
+++ ignition-2.16.2/config/v3_4/types/filesystem.go
|
||||
--- ignition-2.20.0.orig/config/v3_4/types/filesystem.go
|
||||
+++ ignition-2.20.0/config/v3_4/types/filesystem.go
|
||||
@@ -23,6 +23,9 @@ import (
|
||||
)
|
||||
|
||||
@@ -62,10 +62,24 @@ Index: ignition-2.16.2/config/v3_4/types/filesystem.go
|
||||
return f.Device
|
||||
}
|
||||
|
||||
Index: ignition-2.16.2/config/v3_5_experimental/types/filesystem.go
|
||||
Index: ignition-2.20.0/config/v3_5/types/filesystem.go
|
||||
===================================================================
|
||||
--- ignition-2.16.2.orig/config/v3_5_experimental/types/filesystem.go
|
||||
+++ ignition-2.16.2/config/v3_5_experimental/types/filesystem.go
|
||||
--- ignition-2.20.0.orig/config/v3_5/types/filesystem.go
|
||||
+++ ignition-2.20.0/config/v3_5/types/filesystem.go
|
||||
@@ -23,6 +23,9 @@ import (
|
||||
)
|
||||
|
||||
func (f Filesystem) Key() string {
|
||||
+ if (f.Path != nil) {
|
||||
+ return f.Device + *f.Path
|
||||
+ }
|
||||
return f.Device
|
||||
}
|
||||
|
||||
Index: ignition-2.20.0/config/v3_6_experimental/types/filesystem.go
|
||||
===================================================================
|
||||
--- ignition-2.20.0.orig/config/v3_6_experimental/types/filesystem.go
|
||||
+++ ignition-2.20.0/config/v3_6_experimental/types/filesystem.go
|
||||
@@ -23,6 +23,9 @@ import (
|
||||
)
|
||||
|
||||
|
||||
4
_service
4
_service
@@ -1,7 +1,7 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="version">2.19.0</param>
|
||||
<param name="revision">v2.19.0</param>
|
||||
<param name="version">2.25.1</param>
|
||||
<param name="revision">v2.25.1</param>
|
||||
<param name="url">https://github.com/coreos/ignition</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/coreos/ignition</param>
|
||||
<param name="changesrevision">09c99e0305adc1377b87964a39ad2d009aec9b12</param>
|
||||
<param name="changesrevision">ef86d6118071a0094f286a13c19f85f2d86a00bc</param>
|
||||
</service>
|
||||
</servicedata>
|
||||
BIN
ignition-2.19.0.tar.xz
LFS
BIN
ignition-2.19.0.tar.xz
LFS
Binary file not shown.
3
ignition-2.25.1.tar.xz
Normal file
3
ignition-2.25.1.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:efcaf37ab31c183b8e8ea28c444215d7dce0fd07182a876305e5d4d5fa529db7
|
||||
size 4648488
|
||||
@@ -15,7 +15,7 @@ Before=ignition-fetch.service
|
||||
# See hack in coreos-enable-network, as well as coreos-copy-firstboot-network.service;
|
||||
# adapted for SUSE / wicked use
|
||||
After=dracut-cmdline.service
|
||||
Before=dracut-initqueue.service nm-initrd.service
|
||||
Before=dracut-initqueue.service nm-initrd.service NetworkManager-initrd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
@@ -14,5 +14,8 @@ if [ -f /run/ignition/neednet ] && ! getargbool 0 'rd.neednet'; then
|
||||
else
|
||||
# NetworkManager
|
||||
. /lib/dracut/hooks/cmdline/99-nm-config.sh
|
||||
if [ -e /usr/lib/systemd/system/NetworkManager-config-initrd.service ]; then
|
||||
systemctl restart NetworkManager-config-initrd.service
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -10,8 +10,8 @@ grubcfg="/sysroot/etc/default/grub"
|
||||
# for us.
|
||||
. /dracut-state.sh
|
||||
mount "${root#block:}" "${NEWROOT}"
|
||||
# Also mount x-initrd.mount flagged mounts to get the current /etc state
|
||||
awk '$4 ~ /x-initrd.mount/ { system("findmnt /sysroot" $2 " >/dev/null || mount -t " $3 " -o " $4 " " $1 " /sysroot" $2) }' /sysroot/etc/fstab
|
||||
# Mount x-initrd.mount flagged mounts, but skip the bind mount of the new nested subvolume based /etc
|
||||
awk '$4 ~ /x-initrd.mount/ && ! ( $2 == "/etc" && $3 == "none" ) { system("findmnt /sysroot" $2 " >/dev/null || mount -t " $3 " -o " $4 " " $1 " /sysroot" $2) }' /sysroot/etc/fstab
|
||||
|
||||
orig_kernelopts="$(grep GRUB_CMDLINE_LINUX_DEFAULT "${grubcfg}")"
|
||||
orig_kernelopts="${orig_kernelopts#*=}"
|
||||
|
||||
@@ -17,4 +17,4 @@ Before=ignition-files.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -e -c 'eval $(awk '"'"'$4 ~ /x-initrd.mount/ && $1 !~ /^#/ {print "if ! findmnt /sysroot" $2 " >/dev/null; then mount -t " $3 " -o " $4 " " $1 " /sysroot" $2 "; fi;" }'"'"' /sysroot/etc/fstab)'
|
||||
ExecStart=/bin/sh -e -c 'eval $(awk '"'"'$4 ~ /x-initrd.mount/ && $1 !~ /^#/ && ! ( $2 == "/etc" && $3 == "none" ) {print "if ! findmnt /sysroot" $2 " >/dev/null; then mount -t " $3 " -o " $4 " " $1 " /sysroot" $2 "; fi;" }'"'"' /sysroot/etc/fstab)'
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#!/bin/bash
|
||||
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||||
|
||||
set -e
|
||||
|
||||
@@ -42,12 +40,24 @@ add_requires ignition-umount-initrd-fstab.service ignition-files.service
|
||||
add_requires ignition-enable-network.service ignition-fetch.service
|
||||
|
||||
if [ -z "${PLATFORM_ID}" ]; then
|
||||
platform="$(systemd-detect-virt || true)"
|
||||
case "${platform}" in
|
||||
*vmware*) platform="vmware" ;;
|
||||
*oracle*) platform="virtualbox" ;;
|
||||
*kvm*|*qemu*) platform="qemu" ;;
|
||||
*) platform="metal" ;;
|
||||
platform="metal"
|
||||
detectedvirt="$(systemd-detect-virt || true)"
|
||||
case "${detectedvirt}" in
|
||||
*vmware*)
|
||||
if modinfo -F name vmw_vsock_virtio_transport >/dev/null; then
|
||||
platform="vmware"
|
||||
fi
|
||||
;;
|
||||
*oracle*)
|
||||
if modinfo -F name vboxguest >/dev/null; then
|
||||
platform="virtualbox"
|
||||
fi
|
||||
;;
|
||||
*kvm*|*qemu*)
|
||||
if modinfo -F name qemu_fw_cfg >/dev/null; then
|
||||
platform="qemu"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
echo "PLATFORM_ID=${platform}" > /run/ignition.env
|
||||
fi
|
||||
|
||||
@@ -9,4 +9,4 @@ Before=initrd-parse-etc.service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -e -c 'if [ -f /sysroot/etc/systemd/system-preset/20-ignition.preset ]; then while read line; do systemctl --root=/sysroot $line; done < /sysroot/etc/systemd/system-preset/20-ignition.preset; fi'
|
||||
ExecStart=/bin/sh -e -c 'eval $(awk '"'"'$4 ~ /x-initrd.mount/ && $1 !~ /^#/ {print "if findmnt /sysroot" $2 " >/dev/null; then umount -R /sysroot" $2 "; fi;" }'"'"' /sysroot/etc/fstab)'
|
||||
ExecStart=/bin/sh -e -c 'eval $(awk '"'"'$4 ~ /x-initrd.mount/ && $1 !~ /^#/ && ! ( $2 == "/etc" && $3 == "none" ) {print "if findmnt /sysroot" $2 " >/dev/null; then umount -R /sysroot" $2 "; fi;" }'"'"' /sysroot/etc/fstab)'
|
||||
|
||||
109
ignition.changes
109
ignition.changes
@@ -1,3 +1,112 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 16 14:12:31 UTC 2026 - Antonio Feijoo <antonio.feijoo@suse.com>
|
||||
|
||||
- Adapt code to the new initrd services provided by NetworkManager
|
||||
upstream, used in dracut-ng:
|
||||
* ignition-enable-network.service: Also order it before
|
||||
NetworkManager-initrd.service.
|
||||
* ignition-enable-network.sh: This script sets `rd.neednet` in
|
||||
/etc/cmdline.d/40-ignition-neednet.conf after dracut's cmdline
|
||||
hooks run, so it manually sources network-manager's cmdline hook
|
||||
`/lib/dracut/hooks/cmdline/99-nm-config.sh` to call
|
||||
nm-initrd-generator and generate connections. This is done now by
|
||||
NetworkManager-config-initrd.service.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 02 12:13:05 UTC 2026 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- Update to version 2.25.1:
|
||||
* Bug fixes
|
||||
* Fix OpenStack provider returning empty JSON instead of empty
|
||||
bytes when metadata has no config
|
||||
- Update to version 2.25.0:
|
||||
* Features
|
||||
* The name for custom clevis pins is not validated by Ignition
|
||||
anymore, enabling the use of arbitrary custom pins (3.6.0-exp)
|
||||
* Add NVIDIA BlueField provider
|
||||
* Bug fixes
|
||||
* Fix EnsureGroup to be idempotent when group already exists
|
||||
(#2158)
|
||||
* Fix invalid random source in FIPS 140-only mode in FIPS mode
|
||||
(#2159)
|
||||
* Only load kernel modules when actually necessary so that they
|
||||
can be built-in (#2164)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 20 14:34:33 UTC 2025 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- Update to version 2.24.0:
|
||||
* Features
|
||||
* Add support for nocloud config fetching in kubevirt
|
||||
* Bug fixes
|
||||
* Fix occasional cex.key file removal
|
||||
* Fix multipath partitioning: ignore DM holders when no
|
||||
partitions are mounted
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 16 13:24:12 UTC 2025 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- Update to version 2.23.0:
|
||||
* Features
|
||||
* Support UpCloud
|
||||
* Changes
|
||||
* Switch to aws-sdk-go-v2 for S3 fetches and EC2 interactions
|
||||
*Bug fixes
|
||||
* Fix fetch-offline for Oracle Cloud Infrastructure
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 12:56:07 UTC 2025 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- Update to version 2.22.0:
|
||||
* Features
|
||||
* Support Oracle Cloud Infrastructure
|
||||
* Changes
|
||||
* Rename ignition.cfg -> 05_ignition.cfg
|
||||
* Support setting setuid/setgid/sticky mode bits (3.6.0-exp)
|
||||
* Warn if setuid/setgid/sticky mode bits specified (3.4.0 -
|
||||
3.5.0)
|
||||
* Add initial TMT tests and a new workflow to execute tests on
|
||||
PRs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 30 14:08:02 UTC 2025 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- ignition-suse-generator: Only use Ignition platform ID when
|
||||
the corresponding kernel modules are found
|
||||
[bsc#1234315] [boo#1230668] [gh#coreos/ignition#1984]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 01 11:56:36 UTC 2025 - iforster@suse.com
|
||||
|
||||
- Update to version 2.21.0:
|
||||
* Features
|
||||
* Add Azure blob support for fetching ignition configs
|
||||
* Add a check for ignition config in vendor-data (proxmoxve)
|
||||
* Bug fixes
|
||||
* Add pkey_cca kernel module to detect CEX domain for LUKS encryption
|
||||
- Add support for nested /etc subvolume (t-u 5.0.0)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 07 19:58:35 UTC 2024 - iforster@suse.com
|
||||
|
||||
- Update to version 2.20.0:
|
||||
* Features
|
||||
* Support partitioning disk with mounted partitions
|
||||
* Support Proxmox VE
|
||||
* Support gzipped Akamai user_data
|
||||
* Changes
|
||||
* The Dracut module now installs partx
|
||||
* Mark the 3.5.0 config spec as stable
|
||||
* No longer accept configs with version 3.5.0-experimental
|
||||
* Create new 3.6.0-experimental config spec from 3.5.0
|
||||
* Bug fixes
|
||||
* Fix network race when phoning home on Equinix Metal
|
||||
* Fix Akamai Ignition base64 decoding on padded payloads
|
||||
* Fix Makefile GOARCH for loongarch64 (#1942)
|
||||
- Drop go build bugfix again, fixed upstream
|
||||
- Adapting 0002-allow-multiple-mounts-of-same-device.patch to new
|
||||
3.6.0 spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 30 15:27:58 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#
|
||||
# spec file for package ignition
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +18,7 @@
|
||||
|
||||
|
||||
Name: ignition
|
||||
Version: 2.19.0
|
||||
Version: 2.25.1
|
||||
Release: 0
|
||||
Summary: First boot installer and configuration tool
|
||||
License: Apache-2.0
|
||||
@@ -94,7 +95,6 @@ cp %{SOURCE12} dracut/30ignition/ignition-kargs-helper.sh
|
||||
|
||||
%build
|
||||
sed -i -e 's|go build -ldflags|go build -buildmode=pie -ldflags|g' build
|
||||
sed -i -e '/go clean/d' build
|
||||
VERSION=%{version} GLDFLAGS='-X github.com/coreos/ignition/v2/internal/distro.selinuxRelabel=false -X github.com/coreos/ignition/v2/internal/distro.writeAuthorizedKeysFragment=false ' ./build
|
||||
|
||||
%check
|
||||
|
||||
@@ -41,7 +41,7 @@ install() {
|
||||
"/usr/sbin/ignition-enable-network"
|
||||
inst_script "$moddir/ignition-setup-user.sh" \
|
||||
"/usr/sbin/ignition-setup-user"
|
||||
inst_multiple awk systemd-detect-virt cryptsetup
|
||||
inst_multiple awk systemd-detect-virt cryptsetup modinfo
|
||||
install_ignition_unit ignition-remove-reconfig_system.service initrd.target
|
||||
install_ignition_unit ignition-setup-user.service
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user