gdisk is being removed in CentOS Stream 10. In order to not have to
maintain gdisk only for Ignition in CentOS Stream 10, we are migrating
ignition from gdisk to sfdisk. This is migration is not ready yet but we
want to remove gdisk from CentOS Stream 10 as soon as possible thus we
are removing the dependency here and vendoring gdisk in this package
instead.
Install sgdisk to /usr/libexec/ignition-sgdisk. We will include a dracut
module that will install in the PATH only in the initramfs.
Bump gdisk to 1.0.10 to fix build failures, matching what is currently
in Fedora 40.
Resolves: RHEL-56080
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.
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.
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