Skip to content

Commit

Permalink
overlay/05core: coreos-ignition dracut: use vendored sgdisk for el10
Browse files Browse the repository at this point in the history
sgdisk is dropped from RHEL10/c10s, so we vendored it in ignition in [1].
Condiontionnaly include in the initramfs the vendored binary for EL10
variants only.

[1] https://gitlab.com/redhat/centos-stream/rpms/ignition/-/commit/6e48bd528cce5e227352fd375f95393322dcfef0

See https://issues.redhat.com/browse/RHEL-56080

Co-authored-by: Dusty Mabe <[email protected]>
  • Loading branch information
jbtrystram and dustymabe committed Feb 19, 2025
1 parent 6b07a63 commit 11cce8c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,18 @@ install() {
lsblk \
sed \
grep \
sgdisk \
uname


# In some cases we had to vendor gdisk in Ignition.
# If this is the case here use that one.
# See https://issues.redhat.com/browse/RHEL-56080
if [ -f /usr/libexec/ignition-sgdisk ]; then
inst /usr/libexec/ignition-sgdisk /usr/sbin/sgdisk
else
inst sgdisk
fi

# For IBM SecureExecution
if [[ $(uname -m) = s390x ]]; then
inst_multiple \
Expand Down

0 comments on commit 11cce8c

Please sign in to comment.