1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-02 04:22:02 +03:00

systemd: use LVM_PATH instead of hardcoded value in activation generator

This commit is contained in:
Michael Stapelberg
2013-08-15 09:57:30 +02:00
committed by Peter Rajnoha
parent c29c64f20d
commit 8cbbe851a8
2 changed files with 3 additions and 1 deletions

View 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) {