Accepting request 222055 from home:arvidjaar:bnc:862076:Factory
- add autoactivate-lvmetad-with-generator.patch - if use_lvmetad=1, automatically activate lvm2-lvmetad.socket to ensure lvmetad is started when required (bnc#862076) OBS-URL: https://build.opensuse.org/request/show/222055 OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=79
This commit is contained in:
parent
ced969eb63
commit
85d08c8609
40
autoactivate-lvmetad-with-generator.patch
Normal file
40
autoactivate-lvmetad-with-generator.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
||||||
|
Subject: [PATCH] activate lvmetad in generator if use_lvmetad=1
|
||||||
|
|
||||||
|
This avoids unbootable system if user changes use_lvmetad but forgets
|
||||||
|
to enable lvmetad.
|
||||||
|
|
||||||
|
Ref: https://bugzilla.novell.com/show_bug.cgi?id=862076
|
||||||
|
|
||||||
|
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
scripts/lvm2_activation_generator_systemd_red_hat.c | 9 ++++-----
|
||||||
|
1 file changed, 4 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
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
|
||||||
|
@@ -153,15 +153,15 @@ int main(int argc, char *argv[])
|
||||||
|
r = EXIT_FAILURE; goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ dir = argc > 1 ? argv[1] : DEFAULT_UNIT_DIR;
|
||||||
|
+
|
||||||
|
/* If lvmetad used, rely on autoactivation instead of direct activation. */
|
||||||
|
if (lvm_uses_lvmetad()) {
|
||||||
|
kmsg("LVM: Logical Volume autoactivation enabled.\n");
|
||||||
|
- goto out;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- dir = argc > 1 ? argv[1] : DEFAULT_UNIT_DIR;
|
||||||
|
-
|
||||||
|
- if (!generate_unit(dir, 1) || !generate_unit(dir, 0))
|
||||||
|
+ if (dm_snprintf(unit_path, PATH_MAX, "%s/%s", "/usr/lib/systemd/system", "lvm2-lvmetad.socket") < 0 ||
|
||||||
|
+ !register_unit_with_target (dir, "lvm2-lvmetad.socket", "sockets.target"))
|
||||||
|
+ r = EXIT_FAILURE;
|
||||||
|
+ } else if (!generate_unit(dir, 1) || !generate_unit(dir, 0))
|
||||||
|
r = EXIT_FAILURE;
|
||||||
|
out:
|
||||||
|
kmsg("LVM: Activation generator %s.\n", r ? "failed" : "successfully completed");
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 12 15:17:05 UTC 2014 - arvidjaar@gmail.com
|
||||||
|
|
||||||
|
- add autoactivate-lvmetad-with-generator.patch - if use_lvmetad=1,
|
||||||
|
automatically activate lvm2-lvmetad.socket to ensure lvmetad is
|
||||||
|
started when required (bnc#862076)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 22 14:34:41 UTC 2014 - henrik.kuhn@origenis.de
|
Wed Jan 22 14:34:41 UTC 2014 - henrik.kuhn@origenis.de
|
||||||
|
|
||||||
|
@ -76,6 +76,9 @@ Patch71: make_raid1_default.diff
|
|||||||
Patch72: suppress_locking_failer_message.patch
|
Patch72: suppress_locking_failer_message.patch
|
||||||
Patch73: remove-fedora-systemd.patch
|
Patch73: remove-fedora-systemd.patch
|
||||||
|
|
||||||
|
# bnc#862076
|
||||||
|
Patch74: autoactivate-lvmetad-with-generator.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# Not a real replacement but we drop evms
|
# Not a real replacement but we drop evms
|
||||||
Provides: evms = 2.5.5
|
Provides: evms = 2.5.5
|
||||||
@ -114,6 +117,7 @@ Volume Manager.
|
|||||||
%patch71 -p1
|
%patch71 -p1
|
||||||
%patch72 -p1
|
%patch72 -p1
|
||||||
%patch73 -p1
|
%patch73 -p1
|
||||||
|
%patch74 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#set path so that thin_check can be found
|
#set path so that thin_check can be found
|
||||||
|
Loading…
Reference in New Issue
Block a user