forked from pool/systemd
70c63e98f9
- mark more subpackages as !bootstrap for systemd-mini usage. - spec : remove --with-firmware-path, firmware loader was removed in v217 - spec: remove --disable-multi-seat-x, gone.(fixed in xorg) - spec: Do not enable systemd-readahead-collect.service and systemd-readahead-replay.service as these do not exist anymore. - spec: drop timedate-add-support-for-openSUSE-version-of-etc-sysconfig.patch Yast was fixed to write all timezone changes exactly how timedated expects things to be done. - spec: remove handle-etc-HOSTNAME.patch, since late 2014 the netcfg package handles the migration from /etc/HOSTNAME to /etc/hostname and owns both files. -spec: remove boot.udev and systemd-journald.init as they currently serve no purpose. - suse-sysv-bootd-support.diff: Remove HAVE_SYSVINIT conditions, we are in sysvcompat-only codepath, also remove the code targetting other distributions, never compiled as the TARGET_$DISTRO macros are never defined. - systemd-powerd-initctl-support.patch guard with HAVE_SYSV_COMPAT - set-and-use-default-logconsole.patch: fix HAVE_SYSV_COMPAT guards - insserv-generator.patch: Only build when sysvcompat is enabled - vhangup-on-all-consoles.patch add a comment indicating this is a workaround for a kernel bug. - spec: Add option to allow disabling sysvinit compat at build time. - spec: Add option to enable resolved at build time. - spec: Remove all %ifs for !factory products, current systemd releases can neither be built nor installed in older products without upgrading several components of the base system. (removed: 1008-add-msft-compability-rules.patch was only for =< 13.1) - spec: remove all dummy "aliases" to /etc/init.d, that made sense only when those init scripts still existed. (dummy localfs.service source: gone) OBS-URL: https://build.opensuse.org/request/show/286653 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=215
52 lines
1.8 KiB
Diff
52 lines
1.8 KiB
Diff
From 752a4370ecb5643a432ad73b1e22c80cd304948f Mon Sep 17 00:00:00 2001
|
|
From: Frederic Crozat <fcrozat@suse.com>
|
|
Date: Fri, 17 May 2013 13:31:46 +0200
|
|
Subject: [PATCH] sysctl: handle /boot/sysctl.conf-<kernel_release>
|
|
|
|
Add support for kernel release sysctl.conf files (for per-flavor
|
|
configuration), needed by openSUSE (bnc#809420).
|
|
---
|
|
src/sysctl/sysctl.c | 8 ++++++++
|
|
units/systemd-sysctl.service.in | 2 ++
|
|
2 files changed, 10 insertions(+)
|
|
|
|
Index: systemd-218/src/sysctl/sysctl.c
|
|
===================================================================
|
|
--- systemd-218.orig/src/sysctl/sysctl.c
|
|
+++ systemd-218/src/sysctl/sysctl.c
|
|
@@ -26,6 +26,7 @@
|
|
#include <stdio.h>
|
|
#include <limits.h>
|
|
#include <getopt.h>
|
|
+#include <sys/utsname.h>
|
|
|
|
#include "log.h"
|
|
#include "strv.h"
|
|
@@ -310,6 +311,13 @@ int main(int argc, char *argv[]) {
|
|
} else {
|
|
_cleanup_strv_free_ char **files = NULL;
|
|
char **f;
|
|
+ char kernel_sysctl[PATH_MAX];
|
|
+ struct utsname uts;
|
|
+
|
|
+ assert_se(uname(&uts) >= 0);
|
|
+
|
|
+ snprintf(kernel_sysctl, sizeof(kernel_sysctl), "/boot/sysctl.conf-%s", uts.release);
|
|
+ r = parse_file(sysctl_options, kernel_sysctl, true);
|
|
|
|
r = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs);
|
|
if (r < 0) {
|
|
Index: systemd-218/units/systemd-sysctl.service.in
|
|
===================================================================
|
|
--- systemd-218.orig/units/systemd-sysctl.service.in
|
|
+++ systemd-218/units/systemd-sysctl.service.in
|
|
@@ -13,6 +13,8 @@ Conflicts=shutdown.target
|
|
After=systemd-modules-load.service
|
|
Before=sysinit.target shutdown.target
|
|
ConditionPathIsReadWrite=/proc/sys/
|
|
+ConditionPathExistsGlob=|/boot/sysctl.conf-%v
|
|
+RequiresMountsFor=/boot
|
|
|
|
[Service]
|
|
Type=oneshot
|