mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
systemd: update hwdb.bin patch
This commit is contained in:
parent
f308199746
commit
bf92570214
@ -1,53 +1,53 @@
|
|||||||
From 73f401a5a33ad3e647791685a9af14e69c7a89f6 Mon Sep 17 00:00:00 2001
|
From bf2776b7f9403057cb82c2697e4fca8b554db4bd Mon Sep 17 00:00:00 2001
|
||||||
From: Stefan Saraev <stefan@saraev.ca>
|
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
||||||
Date: Fri, 7 Aug 2015 13:25:23 +0300
|
Date: Thu, 11 Apr 2019 20:00:05 +0100
|
||||||
Subject: [PATCH 3/8] move hwdb.bin to /run
|
Subject: [PATCH] move hwdb.bin to /run
|
||||||
|
|
||||||
---
|
---
|
||||||
src/hwdb/hwdb.c | 2 +-
|
src/libsystemd/sd-hwdb/hwdb-util.c | 2 +-
|
||||||
src/libsystemd/sd-hwdb/sd-hwdb.c | 2 +-
|
src/libsystemd/sd-hwdb/sd-hwdb.c | 2 +-
|
||||||
src/udev/udevadm-hwdb.c | 2 +-
|
units/systemd-hwdb-update.service.in | 2 +-
|
||||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c
|
diff --git a/src/libsystemd/sd-hwdb/hwdb-util.c b/src/libsystemd/sd-hwdb/hwdb-util.c
|
||||||
index 446de3a..be91bfe 100644
|
index c83575c..6285f3d 100644
|
||||||
--- a/src/hwdb/hwdb.c
|
--- a/src/libsystemd/sd-hwdb/hwdb-util.c
|
||||||
+++ b/src/hwdb/hwdb.c
|
+++ b/src/libsystemd/sd-hwdb/hwdb-util.c
|
||||||
@@ -38,7 +38,7 @@
|
@@ -20,7 +20,7 @@
|
||||||
* Uses a Patricia/radix trie to index all matches for efficient lookup.
|
#include "strv.h"
|
||||||
*/
|
#include "tmpfile-util.h"
|
||||||
|
|
||||||
-static const char *arg_hwdb_bin_dir = "/etc/udev";
|
|
||||||
+static const char *arg_hwdb_bin_dir = "/run";
|
|
||||||
static const char *arg_root = "";
|
|
||||||
|
|
||||||
|
-static const char *default_hwdb_bin_dir = "/etc/udev";
|
||||||
|
+static const char *default_hwdb_bin_dir = "/run";
|
||||||
static const char * const conf_file_dirs[] = {
|
static const char * const conf_file_dirs[] = {
|
||||||
|
"/etc/udev/hwdb.d",
|
||||||
|
UDEVLIBEXECDIR "/hwdb.d",
|
||||||
diff --git a/src/libsystemd/sd-hwdb/sd-hwdb.c b/src/libsystemd/sd-hwdb/sd-hwdb.c
|
diff --git a/src/libsystemd/sd-hwdb/sd-hwdb.c b/src/libsystemd/sd-hwdb/sd-hwdb.c
|
||||||
index 61c7b44..6e1de7d 100644
|
index 79fe1a8..0acbf71 100644
|
||||||
--- a/src/libsystemd/sd-hwdb/sd-hwdb.c
|
--- a/src/libsystemd/sd-hwdb/sd-hwdb.c
|
||||||
+++ b/src/libsystemd/sd-hwdb/sd-hwdb.c
|
+++ b/src/libsystemd/sd-hwdb/sd-hwdb.c
|
||||||
@@ -269,7 +269,7 @@
|
@@ -299,7 +299,7 @@ static int trie_search_f(sd_hwdb *hwdb, const char *search) {
|
||||||
|
|
||||||
static const char hwdb_bin_paths[] =
|
static const char hwdb_bin_paths[] =
|
||||||
"/etc/systemd/hwdb/hwdb.bin\0"
|
"/etc/systemd/hwdb/hwdb.bin\0"
|
||||||
- "/etc/udev/hwdb.bin\0"
|
- "/etc/udev/hwdb.bin\0"
|
||||||
+ "/run/hwdb.bin\0"
|
+ "/run/hwdb.bin\0"
|
||||||
"/usr/lib/systemd/hwdb/hwdb.bin\0"
|
"/usr/lib/systemd/hwdb/hwdb.bin\0"
|
||||||
#ifdef HAVE_SPLIT_USR
|
#if HAVE_SPLIT_USR
|
||||||
"/lib/systemd/hwdb/hwdb.bin\0"
|
"/lib/systemd/hwdb/hwdb.bin\0"
|
||||||
diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c
|
diff --git a/units/systemd-hwdb-update.service.in b/units/systemd-hwdb-update.service.in
|
||||||
index d65e40c..8889df7 100644
|
index 259fe0d..18d617f 100644
|
||||||
--- a/src/udev/udevadm-hwdb.c
|
--- a/units/systemd-hwdb-update.service.in
|
||||||
+++ b/src/udev/udevadm-hwdb.c
|
+++ b/units/systemd-hwdb-update.service.in
|
||||||
@@ -562,7 +562,7 @@ static int adm_hwdb(struct udev *udev, int argc, char *argv[]) {
|
@@ -16,7 +16,7 @@ After=systemd-remount-fs.service
|
||||||
};
|
Before=sysinit.target shutdown.target systemd-update-done.service
|
||||||
const char *test = NULL;
|
ConditionNeedsUpdate=/etc
|
||||||
const char *root = "";
|
ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
|
||||||
- const char *hwdb_bin_dir = "/etc/udev";
|
-ConditionPathExists=|/etc/udev/hwdb.bin
|
||||||
+ const char *hwdb_bin_dir = "/run";
|
+ConditionPathExists=|/run/hwdb.bin
|
||||||
bool update = false;
|
ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
|
||||||
struct trie *trie = NULL;
|
|
||||||
int err, c;
|
[Service]
|
||||||
--
|
--
|
||||||
1.7.10.4
|
2.14.1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user