lvm2/lvm-path.patch
dong mao zhang 0d189f3052 Accepting request 198442 from home:fcrozat:branches:Base:System
- Add lvm-path.patch: fix lvm binary path in systemd generator.
- Use %_tmpfilesdir macro for tmpfiles directory.

OBS-URL: https://build.opensuse.org/request/show/198442
OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=69
2013-09-11 09:38:23 +00:00

14 lines
636 B
Diff

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
+++ LVM2.2.02.98/scripts/lvm2_activation_generator_systemd_red_hat.c
@@ -125,7 +125,7 @@ static int generate_unit(const char *dir
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=/sbin/lvm vgchange -aay --sysinit\n"
"Type=oneshot\n", f);
if (fclose(f) < 0) {