<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39423</bug_id>
          
          <creation_ts>2020-12-10 21:54:45 +0300</creation_ts>
          <short_desc>Нет симлинка /dev/fd при загрузке с sysvinit из-за udev &gt;= 246</short_desc>
          <delta_ts>2020-12-18 09:01:31 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>startup</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>33000</blocked>
    
    <blocked>39355</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Антон Мидюков">antohami</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
    
    <cc>zxwarior</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>194806</commentid>
    <comment_count>0</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2020-12-10 21:54:45 +0300</bug_when>
    <thetext>При загрузке с системой инициализации sysvinit отсутствуют симлинки:
fd -&gt; /proc/self/fd
stderr -&gt; /proc/self/fd/2
stdin -&gt; /proc/self/fd/0
stdout -&gt; /proc/self/fd/1

Проблема началась после обновления udev до версии 246.
Вот здесь
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=967546
пишут, что из-за коммита
https://github.com/systemd/systemd/commit/6b2229c6c60d0486</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194823</commentid>
    <comment_count>1</comment_count>
    <who name="Speccyfighter">zxwarior</who>
    <bug_when>2020-12-11 17:02:43 +0300</bug_when>
    <thetext>Всего сломано пять

# ll /dev/{core,fd,stdin,stdout,stderr}
ls: невозможно получить доступ к &apos;/dev/core&apos;: Нет такого файла или каталога
ls: невозможно получить доступ к &apos;/dev/fd&apos;: Нет такого файла или каталога
ls: невозможно получить доступ к &apos;/dev/stdin&apos;: Нет такого файла или каталога
ls: невозможно получить доступ к &apos;/dev/stdout&apos;: Нет такого файла или каталога
ls: невозможно получить доступ к &apos;/dev/stderr&apos;: Нет такого файла или каталога

таких симлинков:

# ll /dev/{core,fd,stdin,stdout,stderr} 
lrwxrwxrwx 1 root root 15 дек 11 16:28 /dev/stderr -&gt; /proc/self/fd/2
lrwxrwxrwx 1 root root 15 дек 11 16:28 /dev/stdout -&gt; /proc/self/fd/1
lrwxrwxrwx 1 root root 15 дек 11 16:28 /dev/stdin -&gt; /proc/self/fd/0
lrwxrwxrwx 1 root root 13 дек 11 16:28 /dev/fd -&gt; /proc/self/fd/
lrwxrwxrwx 1 root root 11 дек 11 16:28 /dev/core -&gt; /proc/kcore


Пятый увидел тут:
https://fossies.org/dox/systemd-247/dev-setup_8c_source.html

в этом куске кода dev-setup.c:

16 int dev_setup(const char *prefix, uid_t uid, gid_t gid) {
17  static const char symlinks[] =
18  &quot;-/proc/kcore\0&quot; &quot;/dev/core\0&quot;
19  &quot;/proc/self/fd\0&quot; &quot;/dev/fd\0&quot;
20  &quot;/proc/self/fd/0\0&quot; &quot;/dev/stdin\0&quot;
21  &quot;/proc/self/fd/1\0&quot; &quot;/dev/stdout\0&quot;
22  &quot;/proc/self/fd/2\0&quot; &quot;/dev/stderr\0&quot;;
23</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194827</commentid>
    <comment_count>2</comment_count>
    <who name="Speccyfighter">zxwarior</who>
    <bug_when>2020-12-12 08:50:58 +0300</bug_when>
    <thetext>Симлинки

/dev/{core,fd,stdin,stdout,stderr}

описаны в секциях Compulsory links и Recommended links:
https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/devices.rst</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194923</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2020-12-15 18:19:03 +0300</bug_when>
    <thetext>Раз такое дело, то симлинки можно создать сразу после монтирования /proc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194928</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-12-15 23:30:37 +0300</bug_when>
    <thetext>startup-0.9.9.10-alt1 -&gt; sisyphus:

 Tue Dec 15 2020 Alexey Gladkov &lt;legion@altlinux.ru&gt; 0.9.9.10-alt1
 - rc.sysinit:
   + Create /dev/{core,fd,stdin,stdout,stderr} symlinks if needed (ALT#39423).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195053</commentid>
    <comment_count>5</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2020-12-18 09:01:31 +0300</bug_when>
    <thetext>Спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>