ignition/dracut-ignition-not-in-path.patch
Benjamin Gilbert 49656b1105 Move ignition binary into dracut module directory
It's too dangerous to put in the PATH.
2019-03-18 16:56:35 -04:00

25 lines
753 B
Diff

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"