f037c9430f
- Add 0001-acpi-fptd-fix-memory-leak-in-acpi_get_boot_usec.patch: fix acpi memleak. - Add 0002-fix-lingering-references-to-var-lib-backlight-random.patch: fix invalid path in documentation. - Add 0003-acpi-make-sure-we-never-free-an-uninitialized-pointe.patch: fix invalid memory free. - Add 0004-systemctl-fix-name-mangling-for-sysv-units.patch: fix name mangling for sysv units. - Add 0005-cryptsetup-fix-OOM-handling-when-parsing-mount-optio.patch: fix OOM handling. - Add 0006-journald-add-missing-error-check.patch: add missing error check. - Add 0007-bus-fix-potentially-uninitialized-memory-access.patch: fix uninitialized memory access. - Add 0008-dbus-fix-return-value-of-dispatch_rqueue.patch: fix return value. - Add 0009-modules-load-fix-error-handling.patch: fix error handling. - Add 0010-efi-never-call-qsort-on-potentially-NULL-arrays.patch: fix incorrect memory access. - Add 0011-strv-don-t-access-potentially-NULL-string-arrays.patch: fix incorrect memory access. - Add 0012-mkdir-pass-a-proper-function-pointer-to-mkdir_safe_i.patch: fix invalid pointer. - Add 0014-tmpfiles.d-include-setgid-perms-for-run-log-journal.patch: (forwarded request 202117 from fcrozat) OBS-URL: https://build.opensuse.org/request/show/202147 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=162
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 | 1 +
|
|
2 files changed, 9 insertions(+)
|
|
|
|
Index: systemd-207/src/sysctl/sysctl.c
|
|
===================================================================
|
|
--- systemd-207.orig/src/sysctl/sysctl.c
|
|
+++ systemd-207/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"
|
|
@@ -299,6 +300,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-207/units/systemd-sysctl.service.in
|
|
===================================================================
|
|
--- systemd-207.orig/units/systemd-sysctl.service.in
|
|
+++ systemd-207/units/systemd-sysctl.service.in
|
|
@@ -19,6 +19,8 @@ ConditionDirectoryNotEmpty=|/usr/lib/sys
|
|
ConditionDirectoryNotEmpty=|/usr/local/lib/sysctl.d
|
|
ConditionDirectoryNotEmpty=|/etc/sysctl.d
|
|
ConditionDirectoryNotEmpty=|/run/sysctl.d
|
|
+ConditionPathExistsGlob=|/boot/sysctl.conf-%v
|
|
+RequiresMountsFor=/boot
|
|
|
|
[Service]
|
|
Type=oneshot
|