From 6bbab723c33b194cf670f27706543e0562b7c725e2ae0394fd3fbde9f7841cef Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Wed, 16 Sep 2020 13:58:10 +0000 Subject: [PATCH] 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 --- ...restore-the-creation-a-few-symlinks-.patch | 40 +++++++++++++++++++ systemd-mini.changes | 9 +++++ systemd-mini.spec | 1 + systemd.changes | 9 +++++ systemd.spec | 1 + 5 files changed, 60 insertions(+) create mode 100644 0001-udev-temporarly-restore-the-creation-a-few-symlinks-.patch diff --git a/0001-udev-temporarly-restore-the-creation-a-few-symlinks-.patch b/0001-udev-temporarly-restore-the-creation-a-few-symlinks-.patch new file mode 100644 index 00000000..3734f06e --- /dev/null +++ b/0001-udev-temporarly-restore-the-creation-a-few-symlinks-.patch @@ -0,0 +1,40 @@ +From d5c1b44cf07918b4a28d905cc188c18bb16ab1f3 Mon Sep 17 00:00:00 2001 +From: Franck Bui +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 + diff --git a/systemd-mini.changes b/systemd-mini.changes index 81b39a4e..37e671c7 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Sep 16 13:42:04 UTC 2020 - Franck Bui + +- 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 diff --git a/systemd-mini.spec b/systemd-mini.spec index f7f696ea..7b9fa532 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -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 diff --git a/systemd.changes b/systemd.changes index 81b39a4e..37e671c7 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Sep 16 13:42:04 UTC 2020 - Franck Bui + +- 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 diff --git a/systemd.spec b/systemd.spec index bd35fc30..eb8fdaa8 100644 --- a/systemd.spec +++ b/systemd.spec @@ -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