From 152ba3de14bec057f077c2781068a32a709fcb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Wed, 28 Aug 2024 14:53:11 +0200 Subject: [PATCH] overlay.d/05rhcos: Add dracut module to install vendored gdisk See: https://github.com/coreos/ignition/issues/1926 See: https://issues.redhat.com/browse/RHEL-56080 See: https://github.com/coreos/fedora-coreos-config/pull/3015 --- .../modules.d/50ignition-sgdisk/module-setup.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 overlay.d/05rhcos/usr/lib/dracut/modules.d/50ignition-sgdisk/module-setup.sh diff --git a/overlay.d/05rhcos/usr/lib/dracut/modules.d/50ignition-sgdisk/module-setup.sh b/overlay.d/05rhcos/usr/lib/dracut/modules.d/50ignition-sgdisk/module-setup.sh new file mode 100644 index 00000000..0bb0e07f --- /dev/null +++ b/overlay.d/05rhcos/usr/lib/dracut/modules.d/50ignition-sgdisk/module-setup.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +check() { + return 0 +} + +depends() { + echo ignition +} + +install() { + # Installed vendored gdisk binary in the initramfs for Ignition + # See: https://issues.redhat.com/browse/RHEL-56080 + inst /usr/libexec/ignition-sgdisk /usr/sbin/sgdisk +}