ignition/dracut-ignition-not-in-path.patch

25 lines
753 B
Diff
Raw Normal View History

diff --git a/dracut/30ignition/module-setup.sh b/dracut/30ignition/module-setup.sh
index 4b1c1aa..211da77 100755
--- a/dracut/30ignition/module-setup.sh
+++ b/dracut/30ignition/module-setup.sh
@@ -11,7 +11,6 @@ install() {
chroot \
groupadd \
id \
- ignition \
mkfs.ext4 \
mkfs.vfat \
mkfs.xfs \
@@ -32,6 +31,11 @@ install() {
# inst_script "$moddir/retry-umount.sh" \
# "/usr/sbin/retry-umount"
+ # Distro packaging is expected to install the ignition binary into the
+ # module directory.
+ inst_simple "$moddir/ignition" \
+ "/usr/bin/ignition"
+
inst_simple "$moddir/ignition-generator" \
"$systemdutildir/system-generators/ignition-generator"