# Original spec file for 0.28.0 as generated by: # gofed repo2spec --detect github.com/coreos/ignition --commit f7079129b8651ac51dba14c3af65692bb413c1dd --with-extra --with-build -f # With: # gofed/gofed:v1.0.1 docker image # Modified by hand for 0.33.0 # 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) # Not all devel deps exist in Fedora so you can't install the devel rpm # so we need to build without devel for now # Generate devel rpm %global with_devel 0 # Build project from bundled dependencies %global with_bundled 1 # 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 # macros for Ignition %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 7afbeba044a8bf5762609fbb5f352291eeb7ad9a %global shortcommit %(c=%{commit}; echo ${c:0:7}) # define ldflags, buildflags, testflags here. The ldflags were # taken from ./build. We will need to periodically check these # for consistency %global ldflags ' -X github.com/coreos/ignition/internal/version.Raw=%{version} ' %global buildflags %nil %global testflags %nil # macros for ignition-dracut %global dracutlibdir %{_prefix}/lib/dracut %global dracutprovider github %global dracutprovider_tld com %global dracutproject coreos %global dracutrepo ignition-dracut # https://github.com/coreos/ignition-dracut spec2x branch %global dracutprovider_prefix %{dracutprovider}.%{dracutprovider_tld}/%{dracutproject}/%{dracutrepo} %global dracutimport_path %{dracutprovider_prefix} %global dracutcommit 1f8184e719a220167a774b7fb10d6110473df1e8 %global dracutshortcommit %(c=%{dracutcommit}; echo ${c:0:7}) Name: ignition Version: 0.35.0 Release: 5.rhaos4.4.git%{shortcommit}%{?dist} Summary: First boot installer and configuration tool License: ASL 2.0 and BSD URL: https://%{provider_prefix} Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz Source1: https://%{dracutprovider_prefix}/archive/%{dracutcommit}/%{dracutrepo}-%{dracutshortcommit}.tar.gz # Patch with https://github.com/coreos/ignition/pull/930 for fixing parition creation on s390x Patch0: blkid-variable-fix.patch Patch1: qemu-provider-multiarch.patch # For RHEL7 we'll want to specify gopath and list of arches since there is no # gopath or go_arches macro. We'll also want to make sure we pull in golang # 1.10 require golang >= 1.10 %if 0%{?rhel} <= 7 && 0%{?centos} == 0 %define gopath %{_datadir}/gocode ExclusiveArch: x86_64 ppc64le aarch64 s390x BuildRequires: golang >= 1.10 %else # 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} %endif # add non golang BuildRequires that weren't detected BuildRequires: libblkid-devel # Requires for 'disks' stage %if 0%{?fedora} Requires: btrfs-progs %endif Requires: dosfstools Requires: gdisk Requires: dracut Requires: dracut-network Obsoletes: ignition-dracut < 0.31.0-3 # Main rpm package BuildRequires %if ! 0%{?with_bundled} # Remaining dependencies not included in main packages (sorted) 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/pborman/uuid) 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 # Main package Provides (generated with parsedeps.go | sort) %if 0%{?with_bundled} Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/awserr)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/awsutil)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/client/metadata)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/client)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/corehandlers)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/credentials/endpointcreds)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/credentials/stscreds)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/credentials)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/defaults)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/ec2metadata)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/endpoints)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/request)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/session)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws/signer/v4)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/aws)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/internal/shareddefaults)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/private/protocol/query/queryutil)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/private/protocol/query)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/private/protocol/rest)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/private/protocol/restxml)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/private/protocol)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/service/s3/s3iface)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/service/s3/s3manager)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/service/s3)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/aws/aws-sdk-go/service/sts)) = %{version}-c861d27d0304a79f727e9a8a4e2ac1e74602fdc0 Provides: bundled(golang(github.com/coreos/go-semver/semver)) = %{version}-294930c1e79c64e7dbe360054274fdad492c8cf5 Provides: bundled(golang(github.com/coreos/go-systemd/dbus)) = %{version}-9002847aa1425fb6ac49077c0a630b3b67e0fbfd Provides: bundled(golang(github.com/coreos/go-systemd/unit)) = %{version}-9002847aa1425fb6ac49077c0a630b3b67e0fbfd Provides: bundled(golang(github.com/pin/tftp/netascii)) = %{version}-9ea92f6b1029bc1bf3072bba195c84bb9b0370e3 Provides: bundled(golang(github.com/sigma/vmw-guestinfo/rpcvmx)) = %{version}-95dd4126d6e8b4ef1970b3f3fe2e8cdd470d2903 Provides: bundled(golang(github.com/sigma/vmw-guestinfo/vmcheck)) = %{version}-95dd4126d6e8b4ef1970b3f3fe2e8cdd470d2903 Provides: bundled(golang(github.com/vmware/vmw-guestinfo/bdoor)) = %{version}-25eff159a728be87e103a0b8045e08273f4dbec4 Provides: bundled(golang(github.com/vmware/vmw-guestinfo/message)) = %{version}-25eff159a728be87e103a0b8045e08273f4dbec4 Provides: bundled(golang(github.com/vmware/vmw-guestinfo/rpcout)) = %{version}-25eff159a728be87e103a0b8045e08273f4dbec4 Provides: bundled(golang(go4.org/errorutil)) = %{version}-03efcb870d84809319ea509714dd6d19a1498483 %endif %description Ignition is a utility used to manipulate systems during the initramfs. This includes partitioning disks, formatting partitions, writing files (regular files, systemd units, networkd units, etc.), and configuring users. On first boot, Ignition reads its configuration from a source of truth (remote URL, network metadata service, hypervisor bridge, etc.) and applies the configuration. ############## devel subpackage ############## %if 0%{?with_devel} %package devel Summary: %{summary} BuildArch: noarch License: ASL 2.0 # devel subpackage BuildRequires %if 0%{?with_check} && ! 0%{?with_bundled} # These buildrequires are only for our tests (check) (sorted) 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/pborman/uuid) 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 # devel subpackage Requires. This is basically the source code from # all of the libraries that ignition imports during build. (sorted) 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/pborman/uuid) 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) # devel subpackage Provides (sorted) Provides: golang(%{import_path}/config/shared/errors) = %{version}-%{release} Provides: golang(%{import_path}/config/shared/validations) = %{version}-%{release} Provides: golang(%{import_path}/config/shared) = %{version}-%{release} Provides: golang(%{import_path}/config/util) = %{version}-%{release} Provides: golang(%{import_path}/config/v1/types) = %{version}-%{release} Provides: golang(%{import_path}/config/v1) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_0/types) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_0) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_1/types) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_1) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_2/types) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_2) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_3_experimental/types) = %{version}-%{release} Provides: golang(%{import_path}/config/v2_3_experimental) = %{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}/config/validate) = %{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} Provides: golang(%{import_path}/tests) = %{version}-%{release} %description devel %{summary} This package contains library source intended for building other packages which use import path with %{import_path} prefix. %endif ############## unit-test-devel subpackage ############## %if 0%{?with_unit_test} && 0%{?with_devel} %package unit-test-devel Summary: Unit tests for %{name} package License: ASL 2.0 %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 ############## validate subpackage ############## %package validate Summary: Validation tool for Ignition configs License: ASL 2.0 Conflicts: ignition < 0.31.0-3 %description validate Ignition is a utility used to manipulate systems during the initramfs. This includes partitioning disks, formatting partitions, writing files (regular files, systemd units, networkd units, etc.), and configuring users. On first boot, Ignition reads its configuration from a source of truth (remote URL, network metadata service, hypervisor bridge, etc.) and applies the configuration. This package contains a tool for validating Ignition configurations. %prep # setup command reference: http://ftp.rpm.org/max-rpm/s1-rpm-inside-macros.html # unpack source0 and apply patches %setup -T -b 0 -q -n %{repo}-%{commit} %patch0 -p1 %patch1 -p1 # unpack source1 (dracut modules) %setup -T -D -a 1 -q -n %{repo}-%{commit} cd %{dracutrepo}-%{dracutcommit} mv LICENSE ../LICENSE.dracut %build # Set up PWD as a proper import path for go 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 export LDFLAGS=%{ldflags} # Tell ignition where to find chroot binary export LDFLAGS+=' -X github.com/coreos/ignition/internal/distro.chrootCmd=%{_sbindir}/chroot ' # Enable SELinux relabeling export LDFLAGS+=' -X github.com/coreos/ignition/internal/distro.selinuxRelabel=true ' echo "Building ignition..." %gobuild -o ./ignition %{import_path}/internal echo "Building ignition-validate..." %gobuild -o ./ignition-validate %{import_path}/validate %install # ignition-dracut install -d -p %{buildroot}/%{dracutlibdir}/modules.d install -d -p %{buildroot}/%{_prefix}/lib/systemd/system install -d -p %{buildroot}/%{_sysconfdir}/grub.d pushd %{dracutrepo}-%{dracutcommit} >/dev/null rm -f dracut/README.txt cp -r dracut/* %{buildroot}/%{dracutlibdir}/modules.d/ install -m 0644 -t %{buildroot}/%{_prefix}/lib/systemd/system/ systemd/* install -m 0755 -t %{buildroot}/%{_sysconfdir}/grub.d/ grub/* popd >/dev/null # ignition install -d -p %{buildroot}%{_bindir} install -p -m 0755 ./ignition-validate %{buildroot}%{_bindir} # The ignition binary is only for dracut, and is dangerous to run from # the command line. Install directly into the dracut module dir. install -p -m 0755 ./ignition %{buildroot}/%{dracutlibdir}/modules.d/30ignition # 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 %gotest %{import_path}/config/v2_3/types %gotest %{import_path}/config/v2_4_experimental %gotest %{import_path}/config/v2_4_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 LICENSE.dracut %doc README.md doc/ %{dracutlibdir}/modules.d/30ignition %{dracutlibdir}/modules.d/99emergency-timeout %{dracutlibdir}/modules.d/99journald-conf %{_sysconfdir}/grub.d/* %{_prefix}/lib/systemd/system/*.service %files validate %doc README.md %license LICENSE %{_bindir}/%{name}-validate %if 0%{?with_devel} %files devel -f devel.file-list %license LICENSE %doc README.md code-of-conduct.md CONTRIBUTING.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 README.md code-of-conduct.md CONTRIBUTING.md %endif %changelog * Tue Mar 17 2020 Prashanth Sundararaman - 0.35.0-5-rhaos4.4.git7afbeba * Patch ignition with commit e49283b90e7724e2e6314d5a368b31d61fc3f904 for ppc64le/s390x qemu support * Thu Mar 12 2020 Ben Howard - 0.35.3-rhaos.4.4.git7afbeba - Revert Backport of 'ignition-diskful.target' * Wed Mar 11 2020 Ben Howard - 0.35.2-rhaos.4.4.git7afbeba - Release 0.35.2: update dracut to 7cfc5f9e1692036a688f4693d157d6600dc49bc8 * Preserve the hostname set from ip= kernel commandline * Backport of 'ignition-diskful.target' * Wed Jan 22 2020 Yu Qi Zhang - 0.35.0-rhaos.4.4.git7afbeba - Release of 0.35.0 based on upstream v0.35.0 tag * Mark the 2.4.0 config spec as stable * No longer accept configs with version 2.4.0-experimental * Create new 2.5.0-experimental config spec from 2.4.0 * Allow specifying HTTP headers when fetching remote resources - ignition-dracut: align to spec2x commit d5d5663bf7676d070bfd0c3b6f9f78c0a49b68e4 * Move to ip=dhcp,dhcp6 * Down bonded interfaces properly * Wed Dec 11 2019 Ben Howard - 0.34.0-0-rhaos4.4.git92f874c - ignition: align to spec2x commit 92f874c194d75ea32a4e63e531db3be4689b4850 * Release of 0.34.0 * Bug Fixes: - Fix bug where AWS region is not set correctly for fetches from s3 - Fix bug where empty GPT labels were treated as errors * Changes: - Ignition now logs the name of the stage it is running * Features: - Add optional "fetch" stage to cache the rendered config, but not apply any of it - Add support for aliyun cloud * Tue Dec 10 2019 Colin Walters - 0.33.0-14.rhaos4.3.git3625532 - Bump for 4.4 * Wed Dec 04 2019 Allen Bai - 0.33.0-14.rhaos4.3.git3625532 - Update to latest spec2x * firstboot-complete: tell zipl to run * Thu Nov 07 2019 Colin Walters - 0.33.0-13.rhaos4.3.git3625532 - Update dracut for complete/subsequent targets * Thu Nov 07 2019 Jonathan Lebon - 0.33.0-12.rhaos4.3.git3625532 - Update to latest spec2x for: https://github.com/coreos/ignition-dracut/pull/135#event-2779552254 * Sat Nov 02 2019 Colin Walters - 0.33.0-11.rhaos4.3.git3625532 - Revert dracut update * Thu Oct 31 2019 Colin Walters - 0.33.0-10.rhaos4.3.git3625532 - Update dracut * Tue Oct 29 2019 Colin Walters - 0.33.0-9.rhaos4.3.git3625532 - Update to latest spec2x * Thu Oct 03 2019 Ben Howard - 0.33.0-7-rhaos4.3.git3625532 - ignition: align to spec2x commit 362553247e57d7e706c492bb5267eacc34585ca4 * Backport of `fetch` stage * Tue Sep 10 2019 Colin Walters - 0.33.0-4.rhaos4.2.gitc65e95c - Bump ignition-dracut to help RHCOS rebase on FCOS * Tue Aug 20 2019 Yu Qi Zhang - 0.33.0-3.gitc65e95c - ignition-dracut: align to spec2x commit cc0eee6c9c063b332daf5ef991f4a6b38a79516d * persist-ifcfg: fix early exiting of dracut init script * Thu Aug 8 2019 Steve Milner - 0.33.0-2.gitc65e95c - ignition-dracut: align to spec2x commit 590a413c0e6d46b646a32e326321c151f6903a31 * persist-ifcfg: Don't persist default ip=dhcp * Mon Jul 22 2019 Yu Qi Zhang - 0.33.0-1.gitc65e95c - ignition: release v0.33.0 * Fix regression where Ignition would panic if the guestinfo.* keys were missing on vmware * Create /dev aliases under /run/ignition instead of / -ignition-dracut: align to spec2x commit cebcaea5dc9f27861e5f6e9ada3a4df094d4413f * dracut/30ignition: support `coreos.no_persist_ip` * dracut: add 99emergency-timeout module * Thu May 02 2019 Yu Qi Zhang - 0.32.0-1.git5941fc0 - ignition: release v0.32.0 * Add support for http(s) proxies in config v2.4.0-experimental * Add `metal` provider with a no-op config fetcher * Ignition supports using the kernel command line option `ignition.config.url` in addition to `coreos.config.url` * Relabel /etc/sub{uid,gid} when adding users with SELinux enabled * Add Append() function back to config/vX_Y/ packages - ignition-dracut: align to spec2x commit a3a7522518a4597fc40586aef283f9cf02aaaf79 * remove initramfs networking interfaces * Mon Apr 15 2019 Yu Qi Zhang - 0.31.0-9.gitbcc520b - ignition: align to spec2x commit bcc520b1fd43c2f288dab9443b37fe518b039149 * oem: add metal oem - ignition-dracut: align to spec2x commit 3728730ef6dc6e779a665140382b2227107e4972 * ignition-files: always relabel /var on first boot * Mon Apr 08 2019 Yu Qi Zhang - 0.31.0-8.gitf59a653 - ignition-dracut: Pull in latest from spec2x branch * dracut/30ignition: order services before initrd.target * Fri Mar 22 2019 Dusty Mabe - 0.31.0-7.gitf59a653 - 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 * Wed Mar 20 2019 Michael Nguyen - 0.31.0-6.gitf59a653 - Backport patch for supporting guestinfo.ignition.config.data * Mon Mar 18 2019 Dusty Mabe - 0.31.0-5.gitf59a653 - Use the spec2x branch of ignition-dracut upstream - * Since ignition-dracut master has moved to supporting ignition spec 3.x we are applying 2.x related fixes to the spec2x branch in the ignition-dracut repo. * Summary of backports: https://github.com/coreos/ignition-dracut/pull/58 * Mon Mar 18 2019 Benjamin Gilbert - 0.31.0-4.gitf59a653 - Move dracut modules into main ignition package - Move ignition binary out of the PATH - Move ignition-validate into a subpackage - Include ignition-dracut license file - Drop developer docs from base package * Mon Mar 18 2019 Colin Walters - 0.31.0-3.gitf59a653 - Backport patch for networking * Mon Mar 04 2019 Dusty Mabe - 0.31.0-2.gitf59a653 - ignition-dracut: backport patch for finding ignition.firstboot file on UEFI systems https://github.com/coreos/ignition-dracut/pull/52 * Wed Feb 20 2019 Andrew Jeddeloh - 0.31.0-1.gitf59a653 - New release 0.31.0 * Fri Feb 15 2019 Dusty Mabe - 0.30.0-4.git308d7a0 - Bump to ignition-dracut 2c69925 - * support platform configs and user configs in /boot ^ https://github.com/coreos/ignition-dracut/pull/43 * Add ability to parse config.ign file on boot ^ https://github.com/coreos/ignition-dracut/pull/42 * Fri Feb 01 2019 Fedora Release Engineering - 0.30.0-3.git308d7a0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 28 2019 Dusty Mabe - 0.30.0-2.git308d7a0 - Bump to ignition-dracut fa7131b - * 7579b92 journal: add clarifying comment for context * a6551f1 Remount /sysroot rw (#38) * ignition-firstboot-complete.service: Remount /boot rw * Sat Dec 15 2018 Benjamin Gilbert - 0.30.0-1.git308d7a0 - New release 0.30.0 * Fri Dec 14 2018 Michael Nguyen - 0.29.1-3.gitb1ab0b2 - define gopath for RHEL7 * Tue Dec 11 2018 Dusty Mabe - 0.29.1-2.gitb1ab0b2 - require golang >= 1.10 and specify architecture list for RHEL7 * Tue Dec 11 2018 Andrew Jeddeloh - 0.29.1-1.gitb1ab0b2 - New release 0.29.1 * Wed Nov 21 2018 Igor Gnatenko - 0.28.0-12.gitf707912 - Rebuild for protobuf 3.6 in rawhide (f30) * Tue Nov 20 2018 Jonathan Lebon - 0.28.0-11.git7b83454 - Bump to ignition-dracut 7b83454 * Thu Oct 25 2018 Dusty Mabe - 0.28.0-10.gitf707912 - Bump to ignition-dracut decf63f - * 03d8438 30ignition: only instmods if module available * Thu Oct 25 2018 Dusty Mabe - 0.28.0-9.gitf707912 - 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 * Mon Oct 15 2018 Dusty Mabe - 0.28.0-8.gitf707912 - Bump to ignition-dracut 4bdfb34 - * 6d0763a module-setup: Make mkfs.btrfs optional * Wed Oct 10 2018 Jonathan Lebon - 0.28.0-7.gitf707912 - Backport patch for handling sysctl files correctly https://github.com/coreos/coreos-assembler/pull/128 https://github.com/openshift/machine-config-operator/pull/123 * Wed Sep 26 2018 Dusty Mabe - 0.28.0-6.gitf707912 - Bump to ignition-dracut c09ce6f - * ce9f648 30ignition: add support for ignition-disks * Mon Sep 24 2018 Dusty Mabe - 0.28.0-5.gitf707912 - Remove requires for btrfs on !fedora - Bump to ignition-dracut 8c85eb3 - * 26f2396 journal: Don't log to console AND kmsg * Mon Sep 17 2018 Jonathan Lebon - 0.28.0-4.gitf707912 - Backport patch for relabeling /var/home on FCOS https://github.com/coreos/fedora-coreos-config/issues/2 * Thu Sep 06 2018 Luca Bruno - 0.28.0-3.gitf707912 - Add requires for disks stage * Thu Aug 30 2018 Dusty Mabe - 0.28.0-2.gitf707912 - Bump to ignition-dracut d056287 - * 3f41219 dracut/ignition: remove CL-legacy udev references - * 92ef9dd coreos-firstboot-complete: RemainAfterExit=yes * Thu Aug 30 2018 Andrew Jeddeloh - 0.28.0-1.gitf707912 - New release 0.28.0 * Fri Aug 17 2018 Dusty Mabe - 0.27.0-3.gitcc7ebe0 - Bump to ignition-dracut 56aa514 * Wed Aug 15 2018 Jonathan Lebon - 0.27.0-2.gitcc7ebe0 - Backport patch for /root relabeling https://github.com/coreos/ignition/pull/613 * Fri Aug 10 2018 Jonathan Lebon - 0.27.0-1.gitcc7ebe0 - New release 0.27.0 * Sat Jul 21 2018 Dusty Mabe - 0.26.0-0.6.git7610725 - Bump to ignition-dracut d664657 * Fri Jul 13 2018 Fedora Release Engineering - 0.26.0-0.5.git7610725 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Dusty Mabe - 0.26.0-0.4.git7610725 - Fix building on el7 (install -D not working) * Fri Jun 29 2018 Dusty Mabe - 0.26.0-0.3.git7610725 - Bump to ignition-dracut 17a201b * Tue Jun 26 2018 Dusty Mabe - 0.26.0-0.2.git7610725 - Rename dustymabe/bootengine upstrem to dustymabe/ignition-dracut * Thu Jun 21 2018 Dusty Mabe - 0.26.0-0.1.git7610725 - First package for Fedora