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

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

    <bug>
          <bug_id>40006</bug_id>
          
          <creation_ts>2021-04-28 14:03:18 +0300</creation_ts>
          <short_desc>Поддержка сжатых firmware файлов</short_desc>
          <delta_ts>2021-05-18 17:24:32 +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>make-initrd</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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Sheplyakov">asheplyakov</reporter>
          <assigned_to name="Alexey Sheplyakov">asheplyakov</assigned_to>
          <cc>antohami</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>198253</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2021-04-28 14:03:18 +0300</bug_when>
    <thetext>Начиная с версии 5.3 ядро умеет загружать сжатые [1] firmware файлы.
С учетом того, что linux-firmware растолстел до 900+ МБ, неплохо бы сжимать блобы.
А для этого надо, чтобы make-initrd (а точнее depinfo) умел ими пользоваться.

[1] Пока что только с помощью xz -C crc32</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198254</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-04-28 14:24:37 +0300</bug_when>
    <thetext>Вы что хотите этим сжатием сэкономить ?

&gt; Начиная с версии 5.3 ядро умеет загружать сжатые [1] firmware файлы.

Если место на диске, то итоговый initramfs образ и так сжимается. Такое сжатие может разве что уменьшить необходимое количество памяти для размещения initramfs в момент загрузки, но и то не уверен.

&gt; С учетом того, что linux-firmware растолстел до 900+ МБ, неплохо бы сжимать блобы.

В образ же попадают только необходимые модулям firmware. Размер пакета тут не важна.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198255</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-04-28 14:31:49 +0300</bug_when>
    <thetext>Насчёт поддержки сжатых firmware в depinfo я согласен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198256</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-04-28 14:49:36 +0300</bug_when>
    <thetext>http://git.altlinux.org/people/legion/packages/make-initrd.git?p=make-initrd.git;a=commitdiff;h=4e8e1e942bf546c784aac469a8e75c89570f84e2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198258</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2021-04-28 15:38:06 +0300</bug_when>
    <thetext>(In reply to Alexey Gladkov from comment #1)
&gt; Вы что хотите этим сжатием сэкономить ?

$ du -sh /lib/firmware
591M	/lib/firmware

Вот это. Без необходимости нарезки firmware-linux на подпакеты. Очевидный способ - сжать блобы. Но тогда depinfo не найдет их, т.к. не знает, что они бывают сжатые.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198259</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2021-04-28 15:39:32 +0300</bug_when>
    <thetext>(In reply to Alexey Gladkov from comment #3)
&gt; http://git.altlinux.org/people/legion/packages/make-initrd.git?p=make-initrd.
&gt; git;a=commitdiff;h=4e8e1e942bf546c784aac469a8e75c89570f84e2

Пока что лучше оставить только xz. Потому что другие форматы/алгоритмы сжатия ядерный firmware loader пока не поддерживает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198563</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-05-18 17:24:32 +0300</bug_when>
    <thetext>make-initrd-2.17.0-alt1 -&gt; sisyphus:

 Tue May 18 2021 Alexey Gladkov &lt;legion@altlinux.ru&gt; 2.17.0-alt1
 - Switch from upstream git tree to release tarballs.
 - Runtime:
   + Import halt/reboot/poweroff from sysvinit.
   + ueventd: Added the ability to stop processing events in the queue.
   + The stop_daemon should not show stopped pids.
   + Open rdshell by Alt-Uparrow hotkey.
 - New feature:
   + kickstart: New feature for automated execution of actions.
 - Feature mdadm:
   + Examine only arrays where mountpoints are located (ALT#40005).
 - Feature luks:
   + Remove only one new line in plain text key mode.
 - Feature lkrg:
   + Add nolkrg and noearlylkrg cmdline options (thx Vladimir D. Seleznev).
 - Feature plymouth:
   + Improve portability.
   + Run plymouth helpers only if feature is enabled.
 - Utilities:
   + depinfo: Check compression suffixes when looking for firmware (ALT#40006).
   + depinfo: Explore versioned subdirectories in the firmware search.
 - Misc:
   + Rewrite tests.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>