1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +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

@ -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).

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