- Add 0001-udev-temporarly-restore-the-creation-a-few-symlinks-.patch A temporary patch until the installer environment is updated to create some of the symlinks that udevd used to create during its startup but now udevd relies on the init system to do so. OBS-URL: https://build.opensuse.org/request/show/834923 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1117
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From d5c1b44cf07918b4a28d905cc188c18bb16ab1f3 Mon Sep 17 00:00:00 2001
|
|
From: Franck Bui <fbui@suse.com>
|
|
Date: Wed, 16 Sep 2020 15:27:14 +0200
|
|
Subject: [PATCH 1/1] udev: temporarly restore the creation a few symlinks in
|
|
/dev
|
|
|
|
udevd used to create the following symlinks during its startup.
|
|
|
|
/dev/core
|
|
/dev/fd
|
|
/dev/stdin
|
|
/dev/stdout
|
|
/dev/stderr
|
|
|
|
but this isn't needed when systemd is run as init and other init systems should
|
|
do this on their own.
|
|
|
|
This commit partially reverts commit 6b2229c6c60d0486f5eb9ed3088f9c780d7c0233
|
|
and makes udevd creates the symlinks again until the installer environment is
|
|
fixed.
|
|
---
|
|
src/udev/udevd.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
|
|
index f3236dedfa..d24aae34ff 100644
|
|
--- a/src/udev/udevd.c
|
|
+++ b/src/udev/udevd.c
|
|
@@ -1869,6 +1869,8 @@ int run_udevd(int argc, char *argv[]) {
|
|
if (r < 0 && r != -EEXIST)
|
|
return log_error_errno(r, "Failed to create /run/udev: %m");
|
|
|
|
+ dev_setup(NULL, UID_INVALID, GID_INVALID);
|
|
+
|
|
if (getppid() == 1 && sd_booted() > 0) {
|
|
/* Get our own cgroup, we regularly kill everything udev has left behind.
|
|
* We only do this on systemd systems, and only if we are directly spawned
|
|
--
|
|
2.26.2
|
|
|