Hi, I noticed that the systemd generator hardcodes /usr/sbin/lvm. Attached you can find a patch which fixes the issue. Please merge it or fix the issue in a different way if you prefer :). Thanks! -- Best regards, Michael
Description: Use LVM_PATH instead of hard-coded /usr/sbin/lvm Author: Michael Stapelberg <stapelberg@debian.org> 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 <sys/stat.h> #include <fcntl.h> #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) {
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/