62682e6e22
- Fix patch patch handle-numlock-value-in-etc-sysconfig-keyboard.patch that is do not close a file descriptor twice (boo#973907) - Add two patches which address logind/networkd disappearing from dbus (and busctl) even while the units and processes continue running. 0001-core-fix-bus-name-synchronization-after-daemon-reloa.patch 0001-core-re-sync-bus-name-list-after-deserializing-durin.patch - drop all compiler/linker option customizations: - -pipe option is used by default since day 0 - get rid of cflags() function which is not needed - --hash-size has no impact specially in runtime IOW, use the default options for the compiler and the linker, there's no point in making systemd different from other package in this regards. - use %make_build instead of 'make %{?_smp_mflags}' - be more strict on own lib version requirements - systemd should require udev with the exact same version - Modify patch handle-numlock-value-in-etc-sysconfig-keyboard.patch to allow that open, seek, and read of /dev/mem may fail e.g. on XEN based virtual guests (bsc#961120) - require curl and bzip2 to build importd - curl also causes building of journal-upload. That one has rather unusal certificate usage, set it's ca root to /etc/pki/systemd OBS-URL: https://build.opensuse.org/request/show/384339 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=232
55 lines
1.5 KiB
Diff
55 lines
1.5 KiB
Diff
From 1b4cd0cf11feb7d41f2eff17f86fa55b31bb6841 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Thu, 18 Feb 2016 22:51:23 +0100
|
|
Subject: [PATCH] core: exclude .slice units from "systemctl isolate"
|
|
|
|
Fixes: #1969
|
|
---
|
|
src/core/scope.c | 3 +--
|
|
src/core/slice.c | 8 ++++++++
|
|
2 files changed, 9 insertions(+), 2 deletions(-)
|
|
|
|
diff --git src/core/scope.c src/core/scope.c
|
|
index c5d0ece..361695c 100644
|
|
--- a/src/core/scope.c
|
|
+++ b/src/core/scope.c
|
|
@@ -50,8 +50,7 @@ static void scope_init(Unit *u) {
|
|
assert(u->load_state == UNIT_STUB);
|
|
|
|
s->timeout_stop_usec = u->manager->default_timeout_stop_usec;
|
|
-
|
|
- UNIT(s)->ignore_on_isolate = true;
|
|
+ u->ignore_on_isolate = true;
|
|
}
|
|
|
|
static void scope_done(Unit *u) {
|
|
diff --git src/core/slice.c src/core/slice.c
|
|
index d65364c..667f61b 100644
|
|
--- a/src/core/slice.c
|
|
+++ b/src/core/slice.c
|
|
@@ -34,6 +34,13 @@ static const UnitActiveState state_translation_table[_SLICE_STATE_MAX] = {
|
|
[SLICE_ACTIVE] = UNIT_ACTIVE
|
|
};
|
|
|
|
+static void slice_init(Unit *u) {
|
|
+ assert(u);
|
|
+ assert(u->load_state == UNIT_STUB);
|
|
+
|
|
+ u->ignore_on_isolate = true;
|
|
+}
|
|
+
|
|
static void slice_set_state(Slice *t, SliceState state) {
|
|
SliceState old_state;
|
|
assert(t);
|
|
@@ -305,6 +312,7 @@ const UnitVTable slice_vtable = {
|
|
.no_instances = true,
|
|
.can_transient = true,
|
|
|
|
+ .init = slice_init,
|
|
.load = slice_load,
|
|
|
|
.coldplug = slice_coldplug,
|
|
--
|
|
2.6.2
|
|
|