Compare commits

..

172 commits

Author SHA1 Message Date
Yasmin de Souza
c949917070
Update to 2.25.1 2025-12-29 22:18:45 -03:00
Steven Presti
72b7782599 Update to 2.25.0
Relates to: https://github.com/coreos/ignition/issues/2170
2025-12-12 15:04:08 -05:00
Steven Presti
c968de9bf5 Update to 2.24.0
Relates to: https://github.com/coreos/ignition/issues/2137
2025-10-14 15:41:26 -04:00
Alejandro Sáez
da6e188921 rebuild 2025-10-10 14:40:27 +02:00
Steven Presti
72fea80cc7 Rebuild ignition with goexperiment=strictfipsruntime 2025-10-01 12:54:58 -04:00
Steven Presti
aeab9876fb Update to 2.23.0
relates to: https://github.com/coreos/ignition/issues/2126
2025-09-10 15:13:15 -04:00
Maxwell G
14f8fd597a Rebuild for golang-1.25.0 2025-08-15 17:59:34 -05:00
Fedora Release Engineering
9f25eef1c8 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 17:35:10 +00:00
Tiago Bueno
9d428601e9
Fix rpminspect debug symbols failure
This adds a new configuration file for rpminspect to ensure that debug
symbols are correctly handled in the RPM subpackage.

Signed-off-by: Tiago Bueno <tiago.bueno@gmail.com>
2025-07-16 18:00:07 -03:00
Tiago Bueno
09c7f06575
Backport fix for OracleCloud error handling
Signed-off-by: Tiago Bueno <tiago.bueno@gmail.com>
2025-07-15 12:57:13 -03:00
yasminvalim
5235d93136 Remove obsolete patch
Remove 0001-Rename-ignition.cfg-05_ignition.cfg.patch from spec
2025-07-09 11:34:28 -03:00
yasminvalim
8c802480f9 Update to 2.22.0 2025-07-08 15:05:44 -03:00
Steven Presti
931d3944d9 ignition.cfg: rename to 05_ignition.cfg and backport upstream rename 2025-03-20 08:53:45 -04:00
Steven Presti
8a3dc87da9 ignition-ignition-grub: subpackage rename to ignition-grub 2025-03-19 14:18:13 -04:00
Steven Presti
a295b467f5 grub2: update install dir to be explicitly /lib
correctly install grub config into /lib dir
ref:https://github.com/coreos/ignition/pull/2037
2025-03-19 14:14:07 -04:00
Steven Presti
a13fc83299 Update to 2.21.0
relates to: https://github.com/coreos/ignition/issues/2033
2025-03-14 19:42:41 -04:00
djach7
4b614e8a3d ignition-edge: Update ignition-edge commit
Adds in bug fix to prevent read-only error on boot, see: https://github.com/fedora-iot/ignition-edge/pull/3

Signed-off-by: djach7 <djachimo@redhat.com>
2025-01-28 09:39:11 -05:00
FeRD (Frank Dana)
d185bf7111 Apply upstream patch for Go 1.24 compatibility 2025-01-22 18:19:46 -05:00
FeRD (Frank Dana)
7411ec9287 Fix bogus date in changelog 2025-01-19 03:05:29 -05:00
FeRD (Frank Dana)
6a5b176f6c Simpler generation of random -B value 2025-01-19 03:05:21 -05:00
Fedora Release Engineering
2a8319503b Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 07:00:15 +00:00
Miguel Martín
9041937edf
ignition-edge: Update ignition-edge commit
Add "fips" to ignition-edge dracut module dependencies, see:
https://github.com/fedora-iot/ignition-edge/pull/2

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
2024-11-05 09:40:00 +01:00
Steven Presti
dd57fc84af Update to 2.20.0 2024-10-23 09:27:26 -04:00
Fedora Release Engineering
dc2702945e Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 10:14:15 +00:00
Steven Presti
30fd6a24c3 Update to 2.19.0 2024-06-05 11:30:29 -04:00
Timothée Ravier
7af239fc87 Misc whitespace fixes 2024-04-24 17:35:06 +02:00
Yasmin Valim
bffea01116
Update to 2.18.0 2024-03-05 15:49:11 -03:00
Maxwell G
03bd1df840
Rebuild for golang 1.22.0 2024-02-11 23:27:50 +00:00
Timothée Ravier
6296657697 Backport fix for unexpected Azure IMDS status codes
See: https://github.com/coreos/ignition/issues/1806
2024-02-09 15:00:47 +01:00
Fedora Release Engineering
68751ea10a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 22:36:21 +00:00
Fedora Release Engineering
5ac6552b77 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-20 22:58:03 +00:00
Steven Presti
a14d6588b3 Add ignition-grub subpackage 2023-12-15 17:25:14 -05:00
Steven Presti
4e94fa6ca4 Update to 2.17.0 2023-11-22 13:47:54 -05:00
Fedora Release Engineering
c4b231c156 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 07:17:05 +00:00
Benjamin Gilbert
8d182d2a72 Update to 2.16.2 2023-07-12 17:06:15 -04:00
Benjamin Gilbert
bbbbdecd40 Update to 2.16.1 2023-07-10 18:50:33 -04:00
Steven Presti
6b3027138f Update license to SPDX 2023-06-02 10:28:36 -04:00
Benjamin Gilbert
c3699d870c Remove ignition-edge files from base package 2023-02-22 20:27:17 -06:00
Paul Whalen
b20c1a4257 Enable ignition-edge in Fedora
Signed-off-by: Paul Whalen <pwhalen@fedoraproject.org>
2023-02-22 12:52:30 -05:00
Benjamin Gilbert
df664a9084 Update rpmlintrc for current rpmlint 2023-02-21 15:09:09 -06:00
Benjamin Gilbert
6d7106f64f Drop Conflicts/Obsoletes for ancient Ignition releases
We're only required to support upgrading from Fedora N-2.
2023-02-21 15:05:06 -06:00
Benjamin Gilbert
d327075d15 2.15.0 2023-02-21 14:55:53 -06:00
Fedora Release Engineering
cdc0d0ebec Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 13:01:57 +00:00
Christian Glombek
a637ff4bd8 Enable writing ssh keys fragments on RHEL/CentOS >= 9
https://issues.redhat.com/browse/COS-1589
2022-08-11 20:31:48 +02:00
Fedora Release Engineering
03db1836f4 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 14:32:32 +00:00
Benjamin Gilbert
d1610f2785 Add macOS aarch64 binary to -redistributable 2022-06-27 19:09:37 -04:00
Robert-André Mauchin
9c0b6ff73c Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 2022-06-18 12:11:54 +02:00
Steven Presti
b614d9bb86 ignition.spec: update version to v2.14.0 2022-05-17 13:59:04 -04:00
Sohan Kunkerkar
14ad4c5490 Add patch for fixing the vmware kernel lockdown 2022-03-17 11:15:31 -04:00
Benjamin Gilbert
d9634e2f56 Update rpmlintrc
Filter some additional irrelevant warnings.
2022-01-28 14:11:03 -05:00
Benjamin Gilbert
5873841bec Fix macro invocation in comment 2022-01-28 04:53:09 -05:00
Benjamin Gilbert
de340079e8 Rename -validate-nonlinux to -redistributable; add static Linux binaries
Don't Provide the old package name, since no one should be installing it.
2022-01-28 04:52:28 -05:00
Benjamin Gilbert
7332568141 Avoid double patch application on non-Fedora 2022-01-20 18:29:35 -05:00
Benjamin Gilbert
5b204a35e8 Fix LUKS volume reuse 2022-01-20 18:28:11 -05:00
Fedora Release Engineering
1821283d27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 13:11:06 +00:00
Sohan Kunkerkar
1ba00f299b 2.13.0 2021-11-30 15:04:39 -05:00
Sohan Kunkerkar
a09afd03e2 Move Ignition report to /etc
Required to address https://github.com/coreos/fedora-coreos-tracker/issues/977
2021-10-13 14:31:38 -04:00
Sohan Kunkerkar
34ba035802 Conditionalize Fedora-specific configuration 2021-09-13 16:05:17 -04:00
Sohan Kunkerkar
28bc9afe30 Disable cross-building of Ignition-validate on RHEL/CentOS 2021-09-13 16:05:08 -04:00
Sohan Kunkerkar
6f840d29b8 Disable compressdwarf flag to avoid build failures on RHEL/CentOS 2021-09-13 16:03:34 -04:00
Sohan Kunkerkar
20eb55a99e Disable file fragment writing logic for SSH authorized_keys on RHEL/CentOS
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1985481
2021-08-26 14:43:01 -04:00
Sohan Kunkerkar
459a9ea0e0 Ignition 2.12.0 2021-08-06 09:51:26 -04:00
Fedora Release Engineering
b97215216d - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 08:27:26 +00:00
Benjamin Gilbert
5da7358135 Drop ignition-firstboot-complete and ignition-setup-user services
They should be in distro glue instead.

See also https://github.com/coreos/ignition/pull/1246#issuecomment-876451763.
2021-07-08 18:23:36 -04:00
Benjamin Gilbert
c67462bad1 2.11.0 2021-06-25 22:31:12 -04:00
Sohan Kunkerkar
eeb1bb62c6 Fix go-mods-to-bundled-provides script to parse correct rpm version 2021-06-09 15:07:31 -04:00
Jonathan Lebon
03c2a3f05b Backport patch for multipath on firstboot
https://github.com/coreos/ignition/pull/1208
https://github.com/coreos/fedora-coreos-config/pull/1011
2021-05-26 16:45:36 -04:00
Jonathan Lebon
57fc8be7c9 spec: regenerate from go2rpm
The old spec file was a mess full of things we didn't need/use.
Regenerate a new one from `go2rpm` and then import back the bits we
need.

Co-authored by: Stephen Lowrie <slowrie@redhat.com>
2021-05-26 16:20:41 -04:00
Stephen Lowrie
882b9d831a release: Ignition 2.10.1 2021-04-30 12:12:18 -05:00
Benjamin Gilbert
d2013a08cf Drop mention of networkd in package description 2021-02-05 18:27:51 -05:00
Benjamin Gilbert
3174eb4135 Drop old notes from original package creation 2021-02-05 18:19:50 -05:00
Benjamin Gilbert
5a58c66355 Switch to %autosetup 2021-02-05 18:19:49 -05:00
Benjamin Gilbert
053eaac99b Drop Git commit hash from Release
We've been using a release + patches workflow for a while now.
2021-02-05 18:09:12 -05:00
Benjamin Gilbert
0332d11d03 Set ExclusiveArch from %go_arches 2021-02-05 18:08:56 -05:00
Benjamin Gilbert
4a87958080 Correctly enable IMDS patch 2021-02-05 17:26:23 -05:00
Fedora Release Engineering
5b5a69d6bb - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 14:14:31 +00:00
Sohan Kunkerkar
f27cf37ade Fix AWS probing by using the IMDS token URL 2021-01-12 07:50:34 -05:00
Sohan Kunkerkar
ec21a27d4c release: Ignition v2.9.0 2021-01-08 04:27:44 -05:00
Sohan Kunkerkar
d194305bc2 release: Ignition v2.8.1 2020-12-03 11:06:14 -05:00
Sohan Kunkerkar
6f5a0f935d release: Ignition v2.8.0 2020-11-25 17:24:15 -05:00
Benjamin Gilbert
a67d7056b8 download-ignition.sh: drop
This script isn't doing anything that `spectool -g -S` won't do.
2020-10-27 23:32:46 -04:00
Stephen Lowrie
2c158893d7 Ignition 2.7.0 2020-10-14 23:25:26 -05:00
Benjamin Gilbert
e0fdfe16ef Fix sector size detection on s390x 2020-08-12 10:55:51 -04:00
Benjamin Gilbert
0e08b0f288 Ignition 2.6.0 2020-08-07 23:50:33 -04:00
Jonathan Lebon
fd1940c70e Backport conditional networking fix for OpenStack and CloudStack
https://github.com/coreos/ignition/pull/1057
2020-08-07 09:44:02 -04:00
Fedora Release Engineering
3fba3554ec - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 01:41:10 +00:00
Benjamin Gilbert
b66caa20db Ignition 2.5.0
Co-authored-by: Ben Howard <ben.howard@redhat.com>
2020-07-23 22:05:36 -04:00
Benjamin Gilbert
64396e2988 Ignition 2.4.1 2020-07-16 12:25:54 -04:00
Jonathan Lebon
64c18a989e Backport root homedir relabeling fix
Need https://github.com/coreos/ignition/pull/1029 for
https://github.com/coreos/fedora-coreos-config/pull/426#issuecomment-658867731.
2020-07-15 13:46:33 -04:00
Benjamin Gilbert
480b997359 Ignition 2.4.0 2020-07-13 18:46:38 -04:00
Timothée Ravier
6dedd4b441
Update to latest ignition-dracut to fix coreos-gpt-setup unit
https://github.com/coreos/ignition-dracut/pull/191
2020-06-15 17:11:45 +02:00
Jonathan Lebon
de97bc03b2 Update to latest ignition-dracut to fix error handling
https://github.com/coreos/ignition-dracut/pull/188
2020-06-01 14:28:40 -04:00
Benjamin Gilbert
8010f80671 Ignition 2.3.0 2020-05-05 19:22:03 -04:00
Dusty Mabe
c6f0f376ed
Update to latest ignition-dracut for network fixes
https://github.com/coreos/ignition-dracut/pull/174
2020-04-26 01:47:08 -04:00
Colin Walters
4307eea205 Update to latest ignition-dracut for virtio dump 2020-04-16 15:06:46 +00:00
Benjamin Gilbert
820aa5ae5f Bump ignition-dracut to fix umount stage network access 2020-03-30 14:36:00 -04:00
Benjamin Gilbert
e279304633 Fix userdata/metadata fetch on Packet 2020-03-28 10:13:49 -04:00
Benjamin Gilbert
6ab21c400a Ignition 2.2.1 2020-03-24 17:26:47 -04:00
Benjamin Gilbert
1b6d133ca1 Switch -validate-nonlinux to noarch; move files to /usr/share/ignition
We shouldn't put non-Linux binaries in /usr/bin.  They're opaque data
as far as Linux is concerned, and we can build them on any arch.
Switch the subpackage to noarch, move the binaries to
/usr/share/ignition, and make them non-executable.

Rename files to include architecture triples, and in the Windows case,
the necessary .exe suffix.  These names match the ones used for FCCT
binaries.  For macOS the name now matches the actual name used on the
GitHub releases page; for Windows this is a change.
2020-02-01 15:47:00 -05:00
Benjamin Gilbert
1e620a001f Improve -validate-nonlinux descriptive text 2020-02-01 15:35:20 -05:00
Jonathan Lebon
12436a7180 Bump ignition-dracut for ignition-diskful-subsequent target
https://github.com/coreos/ignition-dracut/pull/151

While we're here, tweak the `download-*` scripts to use `curl` instead
of `wget` since the former is installed by default but not the latter.

Also adapt spec file for not packaging any GRUB dropins anymore.
2020-01-31 10:31:28 -05:00
Fedora Release Engineering
895ede441f - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 05:18:38 +00:00
Dusty Mabe
1017665935
Backport upstream patch to workaround problem booting on live systems
- https://github.com/coreos/fedora-coreos-tracker/issues/339
- https://github.com/coreos/ignition/pull/907
2019-12-20 15:12:13 -05:00
Andrew Jeddeloh
367cb35982 spec: add ignition-validate-nonlinux subpackage
This will be used to create official release binaries to include on the
upstream project's releases page.
2019-12-18 13:26:41 -08:00
Andrew Jeddeloh
6201cd37bf spec: update spec for 2.1.1 2019-12-13 15:19:48 -08:00
Jonathan Lebon
a995f0230b Use the master branch of ignition-dracut, not spec2x
It was accidentally changed to spec2x in:
https://src.fedoraproject.org/rpms/ignition/pull-request/42
2019-12-09 16:01:10 -05:00
Jonathan Lebon
37b7c93f07 Bump Ignition for better SELinux labeling
https://github.com/coreos/ignition/pull/846
2019-12-06 17:27:27 -05:00
Jonathan Lebon
368a09bf73 Don't require btrfs-progs, just recommend it
Some variants may not want to support btrfs at all:
https://github.com/coreos/fedora-coreos-tracker/issues/323
2019-12-05 16:09:47 -05:00
Allen Bai
3c5c0bc444 Update dracut to latest spec2x
Signed-off-by: Allen Bai <abai@redhat.com>
2019-12-05 09:34:53 -05:00
Colin Walters
3c6023281c Update dracut 2019-10-31 16:40:47 +00:00
Colin Walters
3b622206f6 Bump to latest in prep for rootfs redeploy work 2019-09-25 20:40:06 +00:00
Peter Robinson
eb718b540d fix up arch deps for latest golang specs so all the right arches get built 2019-09-21 11:47:00 +01:00
Colin Walters
a08755a3b9 Fix files list 2019-08-16 14:06:53 +00:00
Colin Walters
f83f249db4 Update dracut for gpt fixes 2019-08-16 13:55:42 +00:00
Andrew Jeddeloh
422cf8579b ignition.spec: fix changelog
This was causing fedpkg build to fail.
2019-07-25 11:08:49 -07:00
Andrew Jeddeloh
6ebb45a48e *: bump to Ignition 2.0.1 2019-07-25 10:55:59 -07:00
Fedora Release Engineering
127a4b1ca3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 09:23:03 +00:00
Andrew Jeddeloh
a614d3e5a0 sources: add new sources for 2.0.0 2019-06-10 14:07:07 -07:00
Andrew Jeddeloh
b3b10ac7e4 spec: update generated bits of the spec 2019-06-10 14:07:07 -07:00
Andrew Jeddeloh
5048cceb49 spec: change non-generated bits 2019-06-10 14:07:07 -07:00
Jonathan Lebon
cfcfe34c36 Adapt distro.selinuxRelabel flag path for v2/ move
I.e. https://github.com/coreos/ignition/pull/791.

Otherwise, this whole illusion of happy coexistence with SELinux all
comes crashing down.
2019-05-03 15:54:11 -04:00
Jonathan Lebon
5df9bc031d Bump to ignition-dracut df88988
For https://github.com/coreos/ignition-dracut/pull/76.
2019-05-03 14:05:38 -04:00
Andrew Jeddeloh
e25383b0a1 *: update to 2.0.0-beta 2019-05-01 15:03:15 -07:00
Andrew Jeddeloh
cbc266db72 go-mods-to-bundled: use /usr/bin/env python
Do not assume a python is /bin/python
2019-04-29 15:12:39 -07:00
Jonathan Lebon
6e12473d8f Bump to ignition-dracut 85f2e65
There's lots of important fixes in there that we should get in.
2019-04-08 16:28:36 -04:00
Benjamin Gilbert
25e842489a Drop obsolete override of chroot path 2019-03-27 18:27:36 -04:00
Benjamin Gilbert
edf3b2635a Backport fix for SELinux relabeling of systemd units 2019-03-27 18:27:16 -04:00
Benjamin Gilbert
0b9a765df3 Drop old patch files 2019-03-27 18:23:49 -04:00
Jonathan Lebon
d551c56f90 Bump to Ignition v2.0.0-alpha
Go back to git master for ignition-dracut and import Ignition from git
tag v2.0.0-alpha. This required adapting the build to using go modules
by building with `-mod=vendor` and `GO111MODULE=on` and dropping the
`GOPATH` hacks.

We also drop `parsedeps.go` since Ignition moved away from glide.
Instead introduce a new tiny `go-mods-to-bundled-provides.py` script
that just parses `go.mod` and `vendor/modules.txt` to generate virtual
`Provides`.  The `parsedeps.go` approach also had a few issues that are
fixed in the new script. Notably, it would only pick up on subpackages
of dependent repos, and not the main packages (e.g. it skipped over
`ajeddeloh/go-json`). And also, it was generating `Provides` at the
version of the Ignition package (using `%{version}`), instead of the
version of the bundled package itself.
2019-03-27 10:44:20 -04:00
Dusty Mabe
f1fa20fc14
backports from spec2x branches
- ignition-dracut: Pull in latest from spec2x branch
    * grub: support overriding network kcmdline args
- ignition: pull in subuid/subgid files patch from spec2x branch
    * stages/files: Also relabel subuid/subgid files
2019-03-22 17:50:11 -04:00
Michael Nguyen
cdb9cf4cdb Backport support for ignition vmware properties
Backport support for guestinfo.ignition.config.data
2019-03-20 15:54:30 -04:00
Dusty Mabe
8f7558a405
Use the spec2x branch of ignition-dracut upstream
Since ignition-dracut master has moved to supported ignition
spec 3.x we are applying fixes 2.x related fixes to the spec2x
branch in the ignition-dracut repo.

Summary of backports: https://github.com/coreos/ignition-dracut/pull/58
2019-03-18 18:15:10 -04:00
Benjamin Gilbert
e797537371 tests: try running ignition-validate 2019-03-18 16:56:37 -04:00
Benjamin Gilbert
49656b1105 Move ignition binary into dracut module directory
It's too dangerous to put in the PATH.
2019-03-18 16:56:35 -04:00
Benjamin Gilbert
a4778c4191 Drop developer docs from base package 2019-03-18 16:50:39 -04:00
Benjamin Gilbert
b311717e60 Include ignition-dracut license file 2019-03-18 16:50:39 -04:00
Benjamin Gilbert
ecc7b2311e Merge ignition-dracut into ignition; split out ignition-validate 2019-03-18 16:49:01 -04:00
Benjamin Gilbert
c796b57e00 Remember to exit ignition-dracut directory after installing 2019-03-18 16:47:52 -04:00
Benjamin Gilbert
785d477541 Drop stray summary line from package description 2019-03-18 16:47:52 -04:00
Benjamin Gilbert
a50f54ed84 Fix trailing spaces in %description 2019-03-18 16:47:52 -04:00
Benjamin Gilbert
efdd301bab Move some dracut subpackage configuration within the specfile 2019-03-18 16:47:47 -04:00
Colin Walters
08c873e0e3 Backport networking patch 2019-03-18 19:59:05 +00:00
Dusty Mabe
14c71e122e
ignition-dracut: backport patch for finding ignition.firstboot file on UEFI systems
https://github.com/coreos/ignition-dracut/pull/52
2019-03-04 22:50:57 -05:00
Andrew Jeddeloh
ed359188d7 Bump to Ignition v0.31.0 2019-02-20 17:01:48 -08:00
Dusty Mabe
25ea599bd0
Bump to ignition-dracut 2c69925 2019-02-15 17:39:24 -05:00
Fedora Release Engineering
d8b94af17d - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 03:13:42 +00:00
Dusty Mabe
83f481ab24
Bump to ignition-dracut fa7131b 2019-01-30 14:02:18 -05:00
Dusty Mabe
d3515dd2dd
add a few utility scripts for downloading sources 2019-01-08 09:51:07 -05:00
Benjamin Gilbert
a917a6aa1a Bump to Ignition 0.30.0 2018-12-15 15:06:08 -05:00
Michael Nguyen
45ea7ada15 additional fixups for building against rhel7
add gopath macro to build against rhel7
2018-12-14 17:58:28 +00:00
Dusty Mabe
f1d23b1b46
fixups for building against rhel7
- require golang >= 1.10
- specify arch list since no %go_arches macro
2018-12-11 16:57:08 -05:00
Andrew Jeddeloh
56617235ec Bump to Ignition 0.29.1 2018-12-11 11:46:10 -08:00
Dusty Mabe
6cf1223812
clarify that protobuf 3.6 is only for f30
Since I'd like to keep common git history among all of our branches
(it makes things easier) I'm going to push the latest changes to
all branches. I clarified the changelog message to indicate the
protobuf 3.6 change was only for rawhide/f30.
2018-11-21 21:38:03 -05:00
Igor Gnatenko
603981e76a
Rebuild for protobuf 3.6
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-11-21 17:16:17 +01:00
Jonathan Lebon
78722da2a8 Bump to ignition-dracut 7b83454 2018-11-20 16:13:20 -05:00
Dusty Mabe
a0c94134f8
Bump to ignition-dracut decf63f
* 03d8438 30ignition: only instmods if module available
2018-10-25 18:02:39 -04:00
Dusty Mabe
6fc7632a89
Bump to ignition-dracut 7ee64ca
* 3ec0b39 remove ignition-remount-sysroot.service files
* 66335f2 ignition: run files stage at original CL ordering
* 0301a03 ignition-disks.service: drop Requires=network.target
* a0bc135 ignition-ask-var-mount.service: use RemainAfterExit=yes
* ecf5779 module-setup.sh: explicitly install qemu_fw_cfg
2018-10-25 10:17:44 -04:00
Dusty Mabe
c1c1198ead
Bump to ignition-dracut 4bdfb34
* 6d0763a module-setup: Make mkfs.btrfs optional
2018-10-15 10:07:09 -04:00
Jonathan Lebon
0d1e132c3e Backport patch for sysctl.d handling
This was required before by just

https://github.com/coreos/coreos-assembler/pull/128

which could wait.

But now this showed up in the machine-config-operator as well:

https://github.com/openshift/machine-config-operator/pull/123

So let's just backport it now to make sure the new installer doesn't get
bitten by this.
2018-10-10 15:45:17 -04:00
Dusty Mabe
42544b245f
Bump to ignition-dracut c09ce6f
* ce9f648 30ignition: add support for ignition-disks
2018-09-26 10:44:51 -04:00
Dusty Mabe
8a2fd45726
Bump to ignition-dracut 8c85eb3
* 26f2396 journal: Don't log to console AND kmsg
2018-09-24 15:07:21 -04:00
Colin Walters
1ba750e8df Only require btrfs-progs on Fedora
Other distributions may choose not to ship it.
2018-09-24 13:58:09 -04:00
Jonathan Lebon
623734c384 Backport patch for relabeling /var/home on FCOS
Ref: https://github.com/coreos/fedora-coreos-config/issues/2
2018-09-17 14:33:18 -04:00
Luca Bruno
89e03c4b51
ignition/spec: add requires for disks stage
This adds dependencies for binaries that can be invoked by ignition
disks stage.
2018-09-06 12:57:56 +00:00
Dusty Mabe
8c01d92726
Bump to ignition-dracut d056287
* 3f41219 dracut/ignition: remove CL-legacy udev references
* 92ef9dd coreos-firstboot-complete: RemainAfterExit=yes
2018-09-05 17:30:59 -04:00
Dusty Mabe
baf7e10e47
fixups for c14ed24
- match gofed call at top of .spec match .orig
- fix release to -1 in changelog comment
2018-09-05 17:03:08 -04:00
Andrew Jeddeloh
c14ed2407e New release Ignition-0.28.0
This contains mostly test fixes and a bug fix for 4k sector disks. Drop
the patch for relabeling /root since that is now included in Ignition
itself.

Delete the dropped patch from the repo as well.

Sort all %BuildRequires, %Provides etc lists of go packages.

Update the ignition.spec.orig as well.
2018-09-05 13:18:43 -07:00
Dusty Mabe
d2ffbc197f
Bump to ignition-dracut 56aa514 2018-08-17 13:27:58 -04:00
Jonathan Lebon
5597ff7efc Backport patch for /root relabeling
upstream: https://github.com/coreos/ignition/pull/613
2018-08-16 20:45:25 -04:00
Dusty Mabe
6cb4a05cfc
add basic tests for ignition 2018-08-16 15:38:11 -04:00
Jonathan Lebon
c77c54becf New release ignition-0.27.0-1.gitcc7ebe0
Notably, we now enable the new SELinux relabeling support.
2018-08-10 10:46:27 -04:00
Dusty Mabe
84db7cb04c
forgot to bump release 2018-07-21 14:09:11 -04:00
10 changed files with 1002 additions and 880 deletions

73
.gitignore vendored
View file

@ -1,2 +1,75 @@
/ignition-40c0b57.tar.gz
/ignition-7610725.tar.gz
/ignition-dracut-d664657.tar.gz
/ignition-cc7ebe0.tar.gz
/ignition-dracut-56aa514.tar.gz
/ignition-f707912.tar.gz
/ignition-dracut-d056287.tar.gz
/ignition-dracut-8c85eb3.tar.gz
/ignition-dracut-c09ce6f.tar.gz
/ignition-dracut-4bdfb34.tar.gz
/ignition-dracut-7ee64ca.tar.gz
/ignition-dracut-decf63f.tar.gz
/ignition-dracut-7b83454.tar.gz
/ignition-b1ab0b2.tar.gz
/ignition-308d7a0.tar.gz
/ignition-dracut-fa7131b.tar.gz
/ignition-dracut-2c69925.tar.gz
/ignition-f59a653.tar.gz
/ignition-dracut-0d09097.tar.gz
/ignition-dracut-73ec3fc.tar.gz
/ignition-dracut-ec9a492.tar.gz
/ignition-906cf04.tar.gz
/ignition-dracut-85f2e65.tar.gz
/ignition-910e6c6.tar.gz
/ignition-dracut-df88988.tar.gz
/ignition-0c1da80.tar.gz
/ignition-e75cf24.tar.gz
/ignition-dracut-343b886.tar.gz
/ignition-dracut-d63f76f.tar.gz
/ignition-641ec6a.tar.gz
/ignition-dracut-3d08487.tar.gz
/ignition-dracut-8bf2cbd.tar.gz
/ignition-a8f91fa.tar.gz
/ignition-dracut-736459e.tar.gz
/ignition-dracut-14808e2.tar.gz
/ignition-2d3ff58.tar.gz
/ignition-dracut-f67d587.tar.gz
/ignition-dracut-793d0ef.tar.gz
/ignition-dracut-6136be3.tar.gz
/ignition-dracut-390779d.tar.gz
/ignition-ee616d5.tar.gz
/ignition-dracut-7ff38d9.tar.gz
/ignition-dracut-8f5d1ec.tar.gz
/ignition-dracut-bdf0a65.tar.gz
/ignition-d18bf90.tar.gz
/ignition-dracut-e75fef0.tar.gz
/ignition-5260a5b.tar.gz
/ignition-dracut-6b1d128.tar.gz
/ignition-0d6f3e5.tar.gz
/ignition-947598e.tar.gz
/ignition-5be43fd.tar.gz
/ignition-db4d30d.tar.gz
/ignition-c733d23.tar.gz
/ignition-1d56dc8.tar.gz
/ignition-2.9.0.tar.gz
/ignition-2.10.1.tar.gz
/ignition-2.11.0.tar.gz
/ignition-2.12.0.tar.gz
/ignition-2.13.0.tar.gz
/ignition-2.14.0.tar.gz
/ignition-2.15.0.tar.gz
/ignition-edge-a3a8f0a.tar.gz
/ignition-2.16.1.tar.gz
/ignition-2.16.2.tar.gz
/ignition-2.17.0.tar.gz
/ignition-2.18.0.tar.gz
/ignition-2.19.0.tar.gz
/ignition-2.20.0.tar.gz
/ignition-edge-a258749.tar.gz
/ignition-2.21.0.tar.gz
/ignition-2.22.0.tar.gz
/ignition-2.23.0.tar.gz
/ignition-2.24.0.tar.gz
/ignition-2.25.0.tar.gz
/ignition-2.25.1.tar.gz

84
go-mods-to-bundled-provides.py Executable file
View file

@ -0,0 +1,84 @@
#!/usr/bin/env python3
'''
Tiny dumb script that generates virtual bundled `Provides` from a repo that
uses go modules and vendoring.
'''
import sys
import re
def main():
repos = get_repos_from_go_mod()
print_provides_from_modules_txt(repos)
def get_repos_from_go_mod():
repos = {}
in_reqs = False
for line in open('go.mod'):
line = line.strip()
if in_reqs and line.startswith(')'):
break
if not in_reqs:
if line.startswith('require ('):
in_reqs = True
continue
req = line.split()
repo = req[0]
tag = req[1]
repos[repo] = go_mod_tag_to_rpm_provides_version(tag)
return repos
def go_mod_tag_to_rpm_provides_version(tag):
# go.mod tags are either exact git tags, or may be "pseudo-versions". We
# want to convert these tags to something resembling a version string that
# RPM won't fail on. For more information, see
# https://golang.org/cmd/go/#hdr-Pseudo_versions and following sections.
# trim off any +incompatible
if tag.endswith('+incompatible'):
tag = tag[:-len('+incompatible')]
# git tags are normally of the form v$VERSION
if tag.startswith('v'):
tag = tag[1:]
# is this a pseudo-version? e.g. v0.0.0-20181031085051-9002847aa142
m = re.match("(.*)-([0-9.]+)-([a-f0-9]{12})", tag)
if m:
# rpm doesn't like multiple dashes in the version, so just merge the
# timestamp and the commit checksum into the "release" field
tag = f"{m.group(1)}-{m.group(2)}.git{m.group(3)}"
return tag
def print_provides_from_modules_txt(repos):
for line in open('vendor/modules.txt'):
if line.startswith('#'):
continue
gopkg = line.strip()
repo = lookup_repo_for_pkg(repos, gopkg)
if not repo:
# must be a pkg for tests only; ignore
continue
tag = repos[repo]
print(f"Provides: bundled(golang({gopkg})) = {tag}")
def lookup_repo_for_pkg(repos, gopkg):
for repo in repos:
if gopkg.startswith(repo):
return repo
if __name__ == '__main__':
sys.exit(main())

12
ignition.rpmlintrc Normal file
View file

@ -0,0 +1,12 @@
# Ignition sources have duplicate files because of how spec versioning is
# implemented
addFilter("ignition-debugsource.x86_64: E: files-duplicated-waste")
# -validate-redistributable is supposed to have binaries in it, and
# doesn't really need docs since it isn't user-facing
addFilter("ignition-validate-redistributable.noarch: E: arch-independent-package-contains-binary-or-object")
addFilter("ignition-validate-redistributable.noarch: W: no-documentation")
# This is documented as optional
# https://fedoraproject.org/wiki/Upgrade_paths_%E2%80%94_renaming_or_splitting_packages#Do_I_need_to_Provide_my_old_package_names.3F
addFilter("ignition-validate-redistributable.noarch: W: obsolete-not-provided ignition-validate-nonlinux")

File diff suppressed because it is too large Load diff

View file

@ -1,352 +0,0 @@
# Original spec file as generated by:
# gofed repo2spec --detect github.com/coreos/ignition --commit 76107251acd117c6d3e5b4dae2b47f82f944984b --with-extra --with-build -f
# With:
# gofed@8f62d8d2dea0a87ef60cad72f72e2d7558c0cb75
# And:
# $ git submodule status
# 33207573a1875bc828da3f863e1de439d7af8166 third_party/cmdsignature (heads/master)
# 6bff7ae54535689e2ade3d0bd3d33d903a2190b9 third_party/gofed_infra (remotes/origin/WIP-37-g6bff7ae)
# 7e414c78930a81167dc2cd4d3e9adb79eeed38a6 third_party/gofed_resources (heads/master)
# ef6ec0e387f3b125308243898435774da6128a4c third_party/gofedlib (0.1.0a1-20-gef6ec0e)
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 1
# Run tests in check section
%global with_check 1
# Generate unit-test rpm
%global with_unit_test 1
%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif
%if ! 0%{?gobuild:1}
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
%endif
%global provider github
%global provider_tld com
%global project coreos
%global repo ignition
# https://github.com/coreos/ignition
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global commit 76107251acd117c6d3e5b4dae2b47f82f944984b
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
Release: 0.1.git%{shortcommit}%{?dist}
Summary: !!!!FILL!!!!
# Detected licences
# - Unknown at 'LICENSE'
License: !!!!FILL!!!!
URL: https://%{provider_prefix}
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
%if ! 0%{?with_bundled}
# validate/main.go
BuildRequires: golang(github.com/spf13/cobra)
# Remaining dependencies not included in main packages
BuildRequires: golang(github.com/coreos/go-systemd/unit)
BuildRequires: golang(github.com/coreos/go-semver/semver)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds)
BuildRequires: golang(github.com/pin/tftp)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/vmcheck)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3/s3manager)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/rpcvmx)
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session)
BuildRequires: golang(github.com/vincent-petithory/dataurl)
BuildRequires: golang(github.com/vmware/vmw-ovflib)
BuildRequires: golang(github.com/ajeddeloh/go-json)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3)
%endif
%description
%{summary}
%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/ajeddeloh/go-json)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3/s3manager)
BuildRequires: golang(github.com/coreos/go-semver/semver)
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
BuildRequires: golang(github.com/coreos/go-systemd/unit)
BuildRequires: golang(github.com/pin/tftp)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/rpcvmx)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/vmcheck)
BuildRequires: golang(github.com/vincent-petithory/dataurl)
BuildRequires: golang(github.com/vmware/vmw-ovflib)
%endif
Requires: golang(github.com/ajeddeloh/go-json)
Requires: golang(github.com/aws/aws-sdk-go/aws)
Requires: golang(github.com/aws/aws-sdk-go/aws/awserr)
Requires: golang(github.com/aws/aws-sdk-go/aws/credentials)
Requires: golang(github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds)
Requires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
Requires: golang(github.com/aws/aws-sdk-go/aws/session)
Requires: golang(github.com/aws/aws-sdk-go/service/s3)
Requires: golang(github.com/aws/aws-sdk-go/service/s3/s3manager)
Requires: golang(github.com/coreos/go-semver/semver)
Requires: golang(github.com/coreos/go-systemd/dbus)
Requires: golang(github.com/coreos/go-systemd/unit)
Requires: golang(github.com/pin/tftp)
Requires: golang(github.com/sigma/vmw-guestinfo/rpcvmx)
Requires: golang(github.com/sigma/vmw-guestinfo/vmcheck)
Requires: golang(github.com/vincent-petithory/dataurl)
Requires: golang(github.com/vmware/vmw-ovflib)
Provides: golang(%{import_path}/config/shared) = %{version}-%{release}
Provides: golang(%{import_path}/config/shared/errors) = %{version}-%{release}
Provides: golang(%{import_path}/config/shared/validations) = %{version}-%{release}
Provides: golang(%{import_path}/config/util) = %{version}-%{release}
Provides: golang(%{import_path}/config/v1) = %{version}-%{release}
Provides: golang(%{import_path}/config/v1/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_0) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_0/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_1) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_1/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_2) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_2/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_3_experimental) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_3_experimental/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate/astjson) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate/astnode) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate/report) = %{version}-%{release}
Provides: golang(%{import_path}/tests) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/files) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/filesystems) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/general) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/networkd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/partitions) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/regression) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/security) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/timeouts) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/files) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/filesystems) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/general) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/networkd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/oem) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/partitions) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/passwd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/regression) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/security) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/systemd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/timeouts) = %{version}-%{release}
Provides: golang(%{import_path}/tests/register) = %{version}-%{release}
Provides: golang(%{import_path}/tests/registry) = %{version}-%{release}
Provides: golang(%{import_path}/tests/types) = %{version}-%{release}
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.
%endif
%if 0%{?with_unit_test} && 0%{?with_devel}
%package unit-test-devel
Summary: Unit tests for %{name} package
%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif
# test subpackage tests code from devel subpackage
Requires: %{name}-devel = %{version}-%{release}
%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/stretchr/testify/assert)
%endif
Requires: golang(github.com/stretchr/testify/assert)
%description unit-test-devel
%{summary}
This package contains unit tests for project
providing packages with %{import_path} prefix.
%endif
%prep
%setup -q -n %{repo}-%{commit}
%build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
ln -s ../../../ src/%{import_path}
%if ! 0%{?with_bundled}
export GOPATH=$(pwd):%{gopath}
%else
# No dependency directories so far
export GOPATH=$(pwd):%{gopath}
%endif
#%gobuild -o bin/internal %{import_path}/internal
#%gobuild -o bin/internal/util/tools/docs %{import_path}/internal/util/tools/docs
#%gobuild -o bin/tests/stubs/id-stub %{import_path}/tests/stubs/id-stub
#%gobuild -o bin/tests/stubs/useradd-stub %{import_path}/tests/stubs/useradd-stub
#%gobuild -o bin/tests/stubs/usermod-stub %{import_path}/tests/stubs/usermod-stub
#%gobuild -o bin/validate %{import_path}/validate
%install
install -d -p %{buildroot}%{_bindir}
#install -p -m 0755 bin/internal %{buildroot}%{_bindir}
#install -p -m 0755 bin/internal/util/tools/docs %{buildroot}%{_bindir}
#install -p -m 0755 bin/tests/stubs/id-stub %{buildroot}%{_bindir}
#install -p -m 0755 bin/tests/stubs/useradd-stub %{buildroot}%{_bindir}
#install -p -m 0755 bin/tests/stubs/usermod-stub %{buildroot}%{_bindir}
#install -p -m 0755 bin/validate %{buildroot}%{_bindir}
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go" | grep -v "vendor") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
%endif
# testing files for this project
%if 0%{?with_unit_test} && 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test-devel.file-list
for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
%endif
%if 0%{?with_devel}
sort -u -o devel.file-list devel.file-list
%endif
%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
# Since we aren't packaging up the vendor directory we need to link
# back to it somehow. Hack it up so that we can add the vendor
# directory from BUILD dir as a gopath to be searched when executing
# tests from the BUILDROOT dir.
ln -s ./ ./vendor/src # ./vendor/src -> ./vendor
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%endif
%if ! 0%{?gotest:1}
%global gotest go test
%endif
%gotest %{import_path}/config/v1
%gotest %{import_path}/config/v1/types
%gotest %{import_path}/config/v2_0
%gotest %{import_path}/config/v2_0/types
%gotest %{import_path}/config/v2_1
%gotest %{import_path}/config/v2_1/types
%gotest %{import_path}/config/v2_2
%gotest %{import_path}/config/v2_2/types
%gotest %{import_path}/config/v2_3_experimental
%gotest %{import_path}/config/v2_3_experimental/types
%gotest %{import_path}/config/validate
%gotest %{import_path}/internal/config
%gotest %{import_path}/internal/exec/stages/files
%gotest %{import_path}/internal/exec/util
%gotest %{import_path}/internal/registry
%gotest %{import_path}/internal/util
%gotest %{import_path}/tests
%endif
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
%files
%license LICENSE
%doc CONTRIBUTING.md code-of-conduct.md README.md
#%{_bindir}/internal
#%{_bindir}/internal/util/tools/docs
#%{_bindir}/tests/stubs/id-stub
#%{_bindir}/tests/stubs/useradd-stub
#%{_bindir}/tests/stubs/usermod-stub
#%{_bindir}/validate
%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc CONTRIBUTING.md code-of-conduct.md README.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
%endif
%if 0%{?with_unit_test} && 0%{?with_devel}
%files unit-test-devel -f unit-test-devel.file-list
%license LICENSE
%doc CONTRIBUTING.md code-of-conduct.md README.md
%endif
%changelog
* Thu Jun 21 2018 vagrant - 0-0.1.git7610725
- First package for Fedora

View file

@ -1,61 +0,0 @@
#grab gofed from https://github.com/gofed/gofed
#follow instructions for install
#choose which version of the repo you want to build. For ignition it was 0.2.6 and the commit was 76107251acd117c6d3e5b4dae2b47f82f944984b
[vagrant@vanilla-f28 ~]$ gofed repo2spec --detect github.com/coreos/ignition --commit 76107251acd117c6d3e5b4dae2b47f82f944984b --with-extra --with-build -f
Repo URL: github.com/coreos/ignition
Commit: 76107251acd117c6d3e5b4dae2b47f82f944984b
Name: golang-github-coreos-ignition
(1/4) Checking if the package already exists in PkgDB
(2/4) Collecting data
(3/4) Generating spec file
(4/4) Discovering golang dependencies
Discovering package dependencies
Class: github.com/ajeddeloh/go-json (golang-github-ajeddeloh-go-json) PkgDB=False
Class: github.com/aws/aws-sdk-go (golang-github-aws-aws-sdk-go) PkgDB=True
Class: github.com/coreos/go-semver (golang-github-coreos-go-semver) PkgDB=True
Class: github.com/coreos/go-systemd (golang-github-coreos-go-systemd) PkgDB=True
Class: github.com/pin/tftp (golang-github-pin-tftp) PkgDB=False
Class: github.com/sigma/vmw-guestinfo (golang-github-sigma-vmw-guestinfo) PkgDB=False
Class: github.com/vincent-petithory/dataurl (golang-github-vincent-petithory-dataurl) PkgDB=False
Class: github.com/vmware/vmw-ovflib (golang-github-vmware-vmw-ovflib) PkgDB=False
Discovering test dependencies
Class: github.com/stretchr/testify (golang-github-stretchr-testify) PkgDB=True
Spec file golang-github-coreos-ignition.spec at /home/vagrant/golang-github-coreos-ignition
# spec file now at /home/vagrant/golang-github-coreos-ignition/golang-github-coreos-ignition.spec
# go through and fix things up - see diff
# generate bundled provides by copying/using parsedeps.go to the ignition
# source folder and then running `go run parsedeps.go`. copy into spec file
# should be done by gofed at some point - https://github.com/gofed/gofed/issues/42
# grab source tarball
# rpmspec -P ignition.spec | grep Source0
# pushd $HOME/rpmbuild/SOURCES/
# curl -L -O $URL
# popd
# build RPM
$ rpmbuild -ba kompose.spec
# find a srpm in `$HOME/rpmbuild/SRPMS`
# find a RPM in `$HOME/rpmbuild/RPM/arch/`
# see if the dependencies are proper
$ rpm -qpR $HOME/rpmbuild/RPMS/x86_64/ignition-0.26.0-0.1.git7610725.fc28.x86_64.rpm
# setup to run koji, ref: https://fedoraproject.org/wiki/Using_the_Koji_build_system
$ fedora-packager-setup
$ kinit <username>@FEDORAPROJECT.ORG
# to build it on koji run:
$ koji build --scratch rawhide /path/to/srpm/ignition-0.26.0-0.1.git7610725.fc28.src.rpm

View file

@ -1,47 +0,0 @@
// Helper for parsing glide.lock file and spitting out
// bundled provides statements for an rpm spec file.
package main
import (
"fmt"
"io/ioutil"
"log"
"path"
yaml "gopkg.in/yaml.v2"
)
type Import struct {
Name string
Version string
Subpackages []string
}
type Glide struct {
Hash string
Updated string
Imports []Import
TestImports []Import
}
func main() {
yamlFile, err := ioutil.ReadFile("glide.lock")
if err != nil {
log.Fatal(err)
}
var glide Glide
err = yaml.Unmarshal(yamlFile, &glide)
if err != nil {
log.Fatal(err)
}
for _, imp := range glide.Imports {
// we need format like this:
// Provides: bundled(golang(github.com/coreos/go-oidc/oauth2)) = %{version}-5cf2aa52da8c574d3aa4458f471ad6ae2240fe6b
for _, subp := range imp.Subpackages {
name := path.Join(imp.Name, subp)
fmt.Printf("Provides: bundled(golang(%s)) = %s-%s\n", name, "%{version}", imp.Version)
}
}
}

5
rpminspect.yaml Normal file
View file

@ -0,0 +1,5 @@
---
debuginfo:
ignore:
- /usr/share/ignition/ignition-validate-*-unknown-linux-gnu-static

View file

@ -1,2 +1,2 @@
SHA512 (ignition-7610725.tar.gz) = bd47f26cfc65641b63cb0846bbfd939e835fb477816effbbaff1df83a4146d4eef7d7d2f18a85e8caa386703cabcc4e54ebfd4768c590bbfc795dee6a3949519
SHA512 (ignition-dracut-d664657.tar.gz) = 6ea895a4d85e9e1664e74d14828bf1a23bf6452e781d066ed36e1e874b55a3d39d6da36b676a99665ad1a3a205a17672a8e2904cabe2be876008eea2cb0b6518
SHA512 (ignition-2.25.1.tar.gz) = 8ca2bd96cdff8986e09371a9357975883c655dc6c16eb481ffd2772de37515fe64060ca575b3e4ac25a626b4701c65e5f5a8707ff62f37791f65ec321f7bb3a6
SHA512 (ignition-edge-a258749.tar.gz) = 0566807f7f4cbf9715566c8c39ba699df00f4ee5d579269c695a4af13d75a4e1f4639b54be85d0703373221d67a3ad0c532c0e075831316e3eed7a33cf316833

21
tests/tests.yml Normal file
View file

@ -0,0 +1,21 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required-packages:
- ignition
- ignition-validate
tests:
- ignition-run-version:
dir: ./
run: /usr/lib/dracut/modules.d/30ignition/ignition --version
- ignition-validate-run-version:
dir: ./
run: /usr/bin/ignition-validate --version
- ignition-rpm-installed:
dir: ./
run: /usr/bin/rpm -q ignition
- ignition-validate-rpm-installed:
dir: ./
run: /usr/bin/rpm -q ignition-validate