diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2013-08-15 09:57:30 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2013-08-15 09:59:19 +0200 |
commit | 8cbbe851a80e8d99dc886ce9b44834137731d8ce (patch) | |
tree | f745eb6a204893c7c02fb97c0da1ccb5e3b43499 /scripts/lvm2_activation_generator_systemd_red_hat.c | |
parent | c29c64f20dadbd9076d8729bd3d0cb724c4b39b0 (diff) | |
download | lvm2-8cbbe851a80e8d99dc886ce9b44834137731d8ce.tar.gz |
systemd: use LVM_PATH instead of hardcoded value in activation generator
Diffstat (limited to 'scripts/lvm2_activation_generator_systemd_red_hat.c')
-rw-r--r-- | scripts/lvm2_activation_generator_systemd_red_hat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c index 17bc71a9e..9d4b581c0 100644 --- a/scripts/lvm2_activation_generator_systemd_red_hat.c +++ b/scripts/lvm2_activation_generator_systemd_red_hat.c @@ -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) { |