Description: Use LVM_PATH instead of hard-coded /usr/sbin/lvm Author: Michael Stapelberg Last-Update: 2013-08-14 --- Index: lvm2-2.02.98/scripts/lvm2_activation_generator_systemd_red_hat.c =================================================================== --- lvm2-2.02.98.orig/scripts/lvm2_activation_generator_systemd_red_hat.c 2013-08-14 18:44:12.005448150 +0200 +++ lvm2-2.02.98/scripts/lvm2_activation_generator_systemd_red_hat.c 2013-08-14 18:52:14.403183063 +0200 @@ -20,6 +20,7 @@ #include #include #include "lvm2app.h" +#include "lib.h" /* for LVM_PATH */ #define KMSG_DEV_PATH "/dev/kmsg" #define LVM_CONF_USE_LVMETAD "global/use_lvmetad" @@ -125,7 +126,7 @@ fputs("Before=local-fs.target shutdown.target\n" "Wants=systemd-udev-settle.service\n\n" "[Service]\n" - "ExecStart=/usr/sbin/lvm vgchange -aay --sysinit\n" + "ExecStart=" LVM_PATH " vgchange -aay --sysinit\n" "Type=oneshot\n", f); if (fclose(f) < 0) {