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

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

    <bug>
          <bug_id>47700</bug_id>
          
          <creation_ts>2023-09-22 19:39:03 +0300</creation_ts>
          <short_desc>Raspberry Pi 4 не загружается после обновления</short_desc>
          <delta_ts>2023-10-10 15:53:56 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>make-initrd</component>
          <version>не указана</version>
          <rep_platform>aarch64</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="jqt4@altlinux.org">jqt4</reporter>
          <assigned_to name="qa-team@altlinux.org">qa-team</assigned_to>
          <cc>antohami</cc>
    
    <cc>legion</cc>
    
    <cc>ptrnine</cc>
    
    <cc>zagagyka</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>233722</commentid>
    <comment_count>0</comment_count>
    <who name="jqt4@altlinux.org">jqt4</who>
    <bug_when>2023-09-22 19:39:03 +0300</bug_when>
    <thetext>Установлен образ http://ftp.altlinux.org/pub/distributions/ALTLinux/p10/images/simply/aarch64//slinux-10.0-rpi4-aarch64.img.xz

Для воспроизведения проблемы нужно обновить систему на Raspberry Pi 4 обычным способом:
apt-get update
apt-get dist-upgrade

rpm -q make-initrd
make-initrd-2.31.0-alt5.aarch64

update-kernel

После перезагрузки выдаются сообщения:
Mounting filesystem [/sys/firmvare/efi/efivars]:     [FAILED]
initramfs: Waiting for root ...
Далее происходит выход в rdshell.
Система не загружается.

В rdshell выполнил команды:
cd /lib/initrd/boot/scripts
./mountpoints
poll: mountpoints: /sys/firmvare/efi/efivars: Does not exist

Загрузка не выполнена из-за отсутствия каталога /sys/firmvare/efi/efivars
На Raspberry Pi 4 нет UEFI.

В строках кода:
https://git.altlinux.org/gears/m/make-initrd.git?p=make-initrd.git;a=blob;f=0002-BACKPORT-boot-from-IMSM.patch;h=a37ff631b811e2d233195b5abcde96a95d0729a8;hb=e3123b4a95c4a43ec35c0226e81756b4bfb961a0#l22
https://git.altlinux.org/gears/m/make-initrd.git?p=make-initrd.git;a=blob;f=0002-BACKPORT-boot-from-IMSM.patch;h=a37ff631b811e2d233195b5abcde96a95d0729a8;hb=e3123b4a95c4a43ec35c0226e81756b4bfb961a0#l38
на основании наличия модуля ядра efivarfs предполагается наличие пути /sys/firmvare/efi/efivars, что для Raspberry Pi 4 неверно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233724</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-09-22 19:59:28 +0300</bug_when>
    <thetext>Вот этот апстримный патч не поможет:
https://github.com/osboot/make-initrd/commit/43558a2cccb7fc2d3399c533a508414620ba9094
?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233786</commentid>
    <comment_count>2</comment_count>
    <who name="jqt4@altlinux.org">jqt4</who>
    <bug_when>2023-09-25 16:20:48 +0300</bug_when>
    <thetext>(Ответ для Антон Мидюков на комментарий #1)
&gt; Вот этот апстримный патч не поможет:
&gt; https://github.com/osboot/make-initrd/commit/
&gt; 43558a2cccb7fc2d3399c533a508414620ba9094
&gt; ?

Протестировал - помогает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233787</commentid>
    <comment_count>3</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-09-25 16:22:05 +0300</bug_when>
    <thetext>(Ответ для jqt4@altlinux.org на комментарий #2)
&gt; (Ответ для Антон Мидюков на комментарий #1)
&gt; &gt; Вот этот апстримный патч не поможет:
&gt; &gt; https://github.com/osboot/make-initrd/commit/
&gt; &gt; 43558a2cccb7fc2d3399c533a508414620ba9094
&gt; &gt; ?
&gt; 
&gt; Протестировал - помогает.

Тогда сделай бекпорт.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234632</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey Ivanov">zagagyka</who>
    <bug_when>2023-10-10 15:53:56 +0300</bug_when>
    <thetext>Данная ошибка исправлена в p10 в таске:
https://git.altlinux.org/tasks/330304/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>