]> sourceware.org Git - lvm2.git/commitdiff
systemd: use LVM_PATH instead of hardcoded value in activation generator
authorMichael Stapelberg <stapelberg@debian.org>
Thu, 15 Aug 2013 07:57:30 +0000 (09:57 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 15 Aug 2013 07:59:19 +0000 (09:59 +0200)
WHATS_NEW
scripts/lvm2_activation_generator_systemd_red_hat.c

index 903b28dde8f10a27af206173ac6a3a924bb82898..a4df6c954b5372d4e42331fc62aec5e6551beac5 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.101 - 
 ===================================
+  Use LVM_PATH instead of hardcoded value in lvm2 activation systemd generator.
   Refresh existing VG before autoactivation (event retrigger/device reappeared).
   Fix vgck to notice on-disk corruption even if lvmetad is used.
   Move mpath device filter before partitioned filter (which opens devices).
index 17bc71a9e0fc89a013fcc98ae74ed6c3d9bb85bb..9d4b581c04ff4d20eeb3ff527692946a6cea25cc 100644 (file)
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 #include <limits.h>            /* For PATH_MAX for musl libc */
 #include "lvm2app.h"
+#include "configure.h"         /* for LVM_PATH */
 
 #define KMSG_DEV_PATH        "/dev/kmsg"
 #define LVM_CONF_USE_LVMETAD "global/use_lvmetad"
@@ -150,7 +151,7 @@ static int generate_unit(const char *dir, int unit)
                      "[Service]\n", f);
        }
 
-       fputs("ExecStart=/usr/sbin/lvm vgchange -aay --sysinit\n"
+       fputs("ExecStart=" LVM_PATH " vgchange -aay --sysinit\n"
              "Type=oneshot\n", f);
 
        if (fclose(f) < 0) {
This page took 0.038472 seconds and 5 git commands to generate.