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

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

    <bug>
          <bug_id>28518</bug_id>
          
          <creation_ts>2013-02-07 11:49:41 +0400</creation_ts>
          <short_desc>У plymouth cтранности при запросе пароля</short_desc>
          <delta_ts>2013-03-29 17:50:04 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>plymouth</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>27685</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton V. Boyarshinov">boyarsh</reporter>
          <assigned_to name="Антон Мидюков">antohami</assigned_to>
          <cc>aen</cc>
    
    <cc>antohami</cc>
    
    <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>137676</commentid>
    <comment_count>0</comment_count>
    <who name="Anton V. Boyarshinov">boyarsh</who>
    <bug_when>2013-02-07 11:49:41 +0400</bug_when>
    <thetext>При тестировании функциональности запроса пароля в plymouth обнаружились следующие странности:
под sysvinit пароль запрашивается и вводится, но не выводится (собственно, даже не возвращается из plymouthd)
Кусок strace plymouth --ask-for-password
----------------------------
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 6
setsockopt(6, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
connect(6, {sa_family=AF_FILE, sun_path=@&quot;/org/freedesktop/plymouthd&quot;}, 29) = 0
epoll_ctl(3, EPOLL_CTL_ADD, 6, {...})   = 0
epoll_ctl(3, EPOLL_CTL_MOD, 6, {...})   = 0
epoll_ctl(3, EPOLL_CTL_MOD, 6, {...})   = 0
epoll_wait(3, {?} 0x7f31b2637520, 64, -1) = 1
clock_gettime(CLOCK_MONOTONIC, {193, 481808009}) = 0
write(6, &quot;*\0&quot;, 2)                      = 2
epoll_ctl(3, EPOLL_CTL_MOD, 6, {...})   = 0
epoll_ctl(3, EPOLL_CTL_MOD, 6, {...})   = 0
epoll_wait(3, {?} 0x7f31b2637520, 64, -1) = 1
clock_gettime(CLOCK_MONOTONIC, {196, 858850241}) = 0
read(6, &quot;\2&quot;, 1)                        = 1
read(6, 0x7fffa47cc6c0, 4)              = -1 EAGAIN (Resource temporarily unavailable)
--------------------------


Под systemd всё ещё веселее (при том, что ещё недавно, вроде, работало). Для ввода пароля на luks раздел, systemd гасит plymouth (видимо, что-то ему в этом plymouth не нравится).
запуск plymouthd; plymouth --show-splash; plymouth --ask-for-password приводит к отрисовке окна ввода пароля, но пароль не вводится (а события клавиатуры получает консоль, лежащая под splash).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137677</commentid>
    <comment_count>1</comment_count>
    <who name="Anton V. Boyarshinov">boyarsh</who>
    <bug_when>2013-02-07 11:50:35 +0400</bug_when>
    <thetext>PS описанное поведение наблюдается в kvm с vga=0x314 и отключённым kernel modesetting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138364</commentid>
    <comment_count>2</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2013-03-04 05:20:47 +0400</bug_when>
    <thetext>2cas@: Прошу посмотреть, как вводится пароль LUKS на Fedora 18. Если проблем не будет, то обновите plymouth из Rawhide и повторите тест.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138887</commentid>
    <comment_count>3</comment_count>
    <who name="Anton V. Boyarshinov">boyarsh</who>
    <bug_when>2013-03-20 12:07:11 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; 2cas@: Прошу посмотреть, как вводится пароль LUKS на Fedora 18. Если проблем не
&gt; будет, то обновите plymouth из Rawhide и повторите тест.

Боюсь, в F18 нам не удастся подсмотреть, как правильно вводить пароль при использовании sysvinit :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139144</commentid>
    <comment_count>4</comment_count>
    <who name="Anton V. Boyarshinov">boyarsh</who>
    <bug_when>2013-03-29 17:50:04 +0400</bug_when>
    <thetext>На systemd вроде работает (не из initrd), на sysvinit скорее не работает, но исправлять некому.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>