forked from pool/systemd
Accepting request 834923 from home:fbui:systemd:openSUSE-Factory
- 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
This commit is contained in:
parent
9f480b6a46
commit
6bbab723c3
@ -0,0 +1,40 @@
|
||||
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
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 16 13:42:04 UTC 2020 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 10 12:59:54 UTC 2020 - Franck Bui <fbui@suse.com>
|
||||
|
||||
|
@ -175,6 +175,7 @@ Patch8: 0008-sysv-generator-translate-Required-Start-into-a-Wants.patch
|
||||
Patch9: 0009-pid1-handle-console-specificities-weirdness-for-s390.patch
|
||||
Patch11: 0011-core-disable-session-keyring-per-system-sevice-entir.patch
|
||||
Patch12: 0012-resolved-create-etc-resolv.conf-symlink-at-runtime.patch
|
||||
Patch13: 0001-udev-temporarly-restore-the-creation-a-few-symlinks-.patch
|
||||
|
||||
# Patches listed below are put in quarantine. Normally all changes
|
||||
# must go to upstream first and then are cherry-picked in the SUSE git
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 16 13:42:04 UTC 2020 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 10 12:59:54 UTC 2020 - Franck Bui <fbui@suse.com>
|
||||
|
||||
|
@ -173,6 +173,7 @@ Patch8: 0008-sysv-generator-translate-Required-Start-into-a-Wants.patch
|
||||
Patch9: 0009-pid1-handle-console-specificities-weirdness-for-s390.patch
|
||||
Patch11: 0011-core-disable-session-keyring-per-system-sevice-entir.patch
|
||||
Patch12: 0012-resolved-create-etc-resolv.conf-symlink-at-runtime.patch
|
||||
Patch13: 0001-udev-temporarly-restore-the-creation-a-few-symlinks-.patch
|
||||
|
||||
# Patches listed below are put in quarantine. Normally all changes
|
||||
# must go to upstream first and then are cherry-picked in the SUSE git
|
||||
|
Loading…
Reference in New Issue
Block a user