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

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

    <bug>
          <bug_id>40396</bug_id>
          
          <creation_ts>2021-07-07 21:38:16 +0300</creation_ts>
          <short_desc>systemd commit 249.1-alt1~5 broke sysvinit</short_desc>
          <delta_ts>2021-07-21 19:23:18 +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>systemd-utils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=40553</see_also>
          <bug_file_loc>http://git.altlinux.org/gears/s/..git?p=systemd.git;a=commitdiff;h=3d86aca9bd221900c16bd9b25b199157fe71ba85</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>33000</blocked>
    
    <blocked>27222</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Антон Мидюков">antohami</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>aen</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>200126</commentid>
    <comment_count>0</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-07 21:38:16 +0300</bug_when>
    <thetext>systemd-tmpfiles-standalone оказался обделён конфигами tmpfiles.d.
Предлагаю вынести из systemd или каталог /lib/tmpfiles.d/ целиком, либо отдельные конфиги в отдельный пакет, от которого будут зависеть systemd и systemd-tmpfiles-standalone.

Точно нужно вынести:
/lib/tmpfiles.d/legacy.conf
Возможно:
/lib/tmpfiles.d/tmp.conf
/lib/tmpfiles.d/var.conf
/lib/tmpfiles.d/x11.conf

И если это не добавит каких-то зависимостей, то можно и весь каталог.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200766</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 10:47:06 +0300</bug_when>
    <thetext>В пришедшем в Сизиф задании эта проблема не исправлена:

[#278149] DONE (try 11) systemd.git=249.1-alt1

Также это задание принесло новые проблемы.
systemd поломал загрузку install и не только. На jeos-sysv происходит что-то волшебное. Диск извлекается при загрузке propagator.
С этим пока разбираюсь.
И shaba@ проигнорировал:
https://bugzilla.altlinux.org/40396

Из-за этого в системы sysvinit нужно, по-прежнему, устанавливать systemd-utils.

Также перестал грузиться mediacheck:
Spawning init ...FATAL ERROR IN INIT: can&apos;t find init on root fs

Добавил пакет systemd-utils в SYSTEM_PACKAGES профиля сборки. initrd удалось преодолеть. Инсталятор выдал критическую ошибку так как не смог скопировать:
/etc/nsswitch.conf
/etc/pam.d
/etc/issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200767</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 10:48:19 +0300</bug_when>
    <thetext>(In reply to Антон Мидюков from comment #1)
&gt; Добавил пакет systemd-utils в SYSTEM_PACKAGES профиля сборки. initrd удалось
&gt; преодолеть.

Это про jeos-sysv.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200768</commentid>
    <comment_count>3</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 11:08:14 +0300</bug_when>
    <thetext>(In reply to Антон Мидюков from comment #1)
&gt; Инсталятор выдал критическую ошибку так как не смог скопировать:
&gt; /etc/nsswitch.conf
&gt; /etc/pam.d
&gt; /etc/issue

Не так прочитал, приведу полностью:
Failed to copy files to /etc/nsswitch.conf: No such file or directory
Failed to copy files to /etc/pam.d: No such file or directory
Failed to copy files to /etc/issue: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200770</commentid>
    <comment_count>4</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 11:39:52 +0300</bug_when>
    <thetext>(In reply to Антон Мидюков from comment #3)
&gt; Failed to copy files to /etc/nsswitch.conf: No such file or directory
&gt; Failed to copy files to /etc/pam.d: No such file or directory
&gt; Failed to copy files to /etc/issue: No such file or directory

Это в /usr/sbin/install2 валится команда:
systemd-tmpfiles --remove --create --boot --exclude-prefix=dev

если заменить на:
systemd-tmpfiles --remove --create --exclude-prefix=dev

то проходит успешно.

Проблема propagator проявляется, если загружать в virtualbox. В qemu не проявляется.

Добавление пакета systemd-utils в SYSTEM_PACKAGES профиля сборки в действительности ничего не изменило. Проблема загрузки mediacheck проявляется везде.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200772</commentid>
    <comment_count>5</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 12:07:34 +0300</bug_when>
    <thetext>(In reply to Антон Мидюков from comment #4)
&gt; (In reply to Антон Мидюков from comment #3)
&gt; &gt; Failed to copy files to /etc/nsswitch.conf: No such file or directory
&gt; &gt; Failed to copy files to /etc/pam.d: No such file or directory
&gt; &gt; Failed to copy files to /etc/issue: No such file or directory
&gt; 
&gt; Это в /usr/sbin/install2 валится команда:
&gt; systemd-tmpfiles --remove --create --boot --exclude-prefix=dev
&gt; 
&gt; если заменить на:
&gt; systemd-tmpfiles --remove --create --exclude-prefix=dev
&gt; 
&gt; то проходит успешно.
&gt; 

Также помогает удаление /lib/tmpfiles.d/etc.conf

Там такое:
L /etc/os-release - - - - ../usr/lib/os-release
L+ /etc/mtab - - - - ../proc/self/mounts
L! /etc/resolv.conf - - - - ../run/systemd/resolve/stub-resolv.conf
C! /etc/nsswitch.conf - - - -
C! /etc/pam.d - - - -
C! /etc/issue - - - -</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200779</commentid>
    <comment_count>6</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 13:50:48 +0300</bug_when>
    <thetext>Теперь стало понятно в чём дело. В systemd-utils переехали из пакета systemd-stateless:
/lib/sysusers.d/basic.conf
/lib/sysusers.d/systemd.conf
/lib/tmpfiles.d/etc.conf

Последний конфиг оказался фатальным для инсталятора.
Так как systemd-utils остаётся у пользователей sysvinit, то это было диверсией против них, не говоря уже про наш инсталятор.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200781</commentid>
    <comment_count>7</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 14:05:07 +0300</bug_when>
    <thetext>(In reply to Антон Мидюков from comment #1)
&gt; На jeos-sysv происходит что-то
&gt; волшебное. Диск извлекается при загрузке propagator.

Похоже, что это &quot;волшебство&quot; всё же вина virtualbox. Сейчас проблема перестала в нём воспроизводиться на тех же образах.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200783</commentid>
    <comment_count>8</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-07-21 14:12:50 +0300</bug_when>
    <thetext>Виноват коммит 249.1-alt1~5:
http://git.altlinux.org/gears/s/..git?p=systemd.git;a=commitdiff;h=3d86aca9bd221900c16bd9b25b199157fe71ba85</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200785</commentid>
    <comment_count>9</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 14:29:20 +0300</bug_when>
    <thetext>(In reply to Dmitry V. Levin from comment #8)
&gt; Виноват коммит 249.1-alt1~5:
&gt; http://git.altlinux.org/gears/s/..git?p=systemd.git;a=commitdiff;
&gt; h=3d86aca9bd221900c16bd9b25b199157fe71ba85

Да. Только заодно надо исправить и изначальную ошибку.
/lib/tmpfiles.d/legacy.conf точно должен быть доступен при установке только systemd-utils-standalone.

Так, в rescue сейчас не приезжает systemd-utils, и, если не исправить эту ошибку, придётся мне его туда добавить самому.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200808</commentid>
    <comment_count>10</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-07-21 18:40:41 +0300</bug_when>
    <thetext>[#279897] TESTED systemd.git=249.1-alt2

проблемы исправляет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200812</commentid>
    <comment_count>11</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-07-21 19:08:52 +0300</bug_when>
    <thetext>systemd-1:249.1-alt2 -&gt; sisyphus:

 Wed Jul 21 2021 Alexey Shabalin &lt;shaba@altlinux&gt; 1:249.1-alt2
 - Move sysusers configs to stateless package (ALT #40396).
 - Move common tmpfiles configs to new systemd-tmpfiles-common package (ALT #40396).
 - Package systemd-stateless as noarch.
 - Drop systemd-stateless requies in systemd-journal-remote.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200814</commentid>
    <comment_count>12</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2021-07-21 19:23:18 +0300</bug_when>
    <thetext>Спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>