From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] sysvinit + udev
Date: Sat, 12 Dec 2020 04:28:33 +0300
Message-ID: <20201212012833.GG21271@altlinux.org> (raw)
In-Reply-To: <a6e87311-e380-ab2a-9ee0-81230591bda2@ya.ru>
On 2020-12-12 00:15:37 +0700, Антон Мидюков wrote:
> После обновления udev до 246 на системах с sysvinit при загрузке
> не стали
Перестали?
> создаваться симлинки:
> /dev/stderr -> /proc/self/fd/2
> /dev/stdout -> /proc/self/fd/1
> /dev/stdin -> /proc/self/fd/0
> /dev/fd -> /proc/self/fd/
Какой в них смысл, если они всегда указывают в /proc/self ?
> /dev/core -> /proc/kcore
А /proc/kcore вообще быть не должно (CONFIG_PROC_KCORE лучше
отключить).
> Смотреть баг: 39423.
> Как я понимаю, теперь это норма, и создавать симлинки эти должен
> кто-то другой. Вопрос: кто?
В системах для людей наполнением /dev занимается ядро.
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
Костыль (udev) при этом использовать тоже можно, но все прекрасно
работает и без него.
> Может /etc/rc.d/rc.sysinit из пакетов startup?
Если они кому-то нужны - да, это самое подходящее место. Как-то так:
test -d /proc/self/fd && ln -sf ../proc/self/fd /dev/fd
test -e /proc/self/fd/0 && ln -sf ../proc/self/fd/0 /dev/stdin
test -e /proc/self/fd/1 && ln -sf ../proc/self/fd/1 /dev/stdout
test -e /proc/self/fd/2 && ln -sf ../proc/self/fd/2 /dev/stderr
> Или может в initrd это делать?
Любой инструмент, используемый не по назначению, неотвратимо
превращается в грабли.
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
next prev parent reply other threads:[~2020-12-12 1:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-11 17:15 Антон Мидюков
2020-12-11 17:27 ` Alexey Gladkov
2020-12-11 17:35 ` Vladislav Zavjalov
2020-12-11 17:55 ` Alexey Gladkov
2020-12-12 1:28 ` Alexey V. Vissarionov [this message]
2020-12-14 19:31 ` Антон Мидюков
2020-12-15 3:23 ` Alexey V. Vissarionov
2020-12-15 3:38 ` Антон Мидюков
2020-12-15 4:15 ` Alexey V. Vissarionov
2020-12-30 14:22 ` Alexey Sheplyakov
2020-12-30 14:26 ` Alexey Gladkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201212012833.GG21271@altlinux.org \
--to=gremlin@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git