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

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

    <bug>
          <bug_id>50483</bug_id>
          
          <creation_ts>2024-05-28 13:33:28 +0300</creation_ts>
          <short_desc>Не отслеживаются ошибки при копировании файлов в initramfs</short_desc>
          <delta_ts>2024-06-22 19:33:55 +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>x86_64</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="manowar@altlinux.org">manowar</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>antohami</cc>
    
    <cc>boot.efi</cc>
    
    <cc>glebfm</cc>
    
    <cc>iv</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>246867</commentid>
    <comment_count>0</comment_count>
    <who name="manowar@altlinux.org">manowar</who>
    <bug_when>2024-05-28 13:33:28 +0300</bug_when>
    <thetext>Здравствуйте. Столкнулся с тем, что put-file в rules.mk игнорирует ошибки: часть файлов отсутствовало и не попадало в initrd, из-за чего система работала не корректно. А заметили это далеко не сразу, потому что генерация initrd завершалась успешно.

К примеру, вот так:

# initrd-put &quot;/tmp/.private/root/make-initrd.FNyCebDCs/6.1.85-un-def-alt0.c10f.2.initrd/img&quot; /usr/lib64/openssl/engines-3/gost.so
initrd-put: unable to process component of path: /usr/lib64/openssl/engines-3: No such file or directory

[root@imatest ~]# echo $?
0

Я подумал, что может быть у initrd-put предусмотрена опция, выключаюшая такое поведение, но не нашёл таковой.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247737</commentid>
    <comment_count>1</comment_count>
    <who name="Корытов Иван">boot.efi</who>
    <bug_when>2024-06-18 08:51:39 +0300</bug_when>
    <thetext>Также не работают маски файлов и они не попадают в образ:

&gt; [00:00:00] Config file: /etc/initrd.mk.d/rescue.mk
&gt; [00:00:00] Generating module dependencies on host ...
&gt; initrd-put: unable to process component of path: /sbin/fsck.*: No such file or directory
&gt; [00:00:09] Used features: add-modules add-udev-rules cleanup compress depmod-image kbd network qemu rdshell rootfs system-glibc ucode
&gt; [00:00:09] Packed modules: 8139cp 8390 9pnet 9pnet_virtio af_packet ahci ata_generic ata_piix cdrom cec crypto_engine drm drm_kms_helper e100 e1000 e1000e ehci-hcd evdev failover fuse hid hid-generic input-leds libahci libata libnvdimm mii nd_virtio ne2k-pci net_failover pata_acpi pcnet32 rc-core rng-core rpmsg_core scsi_mod serio_raw sr_mod vdpa virtio virtio_balloon virtio_blk virtio_console virtio_crypto virtio_dma_buf virtiofs virtio-gpu virtio_input virtio_mem virtio_mmio virtio_net virtio_pci virtio_pmem virtio_ring virtio-rng virtio_rpmsg_bus virtio_scsi virtio_vdpa vmw_vsock_virtio_transport vmw_vsock_virtio_transport_common vsock 
&gt; [00:00:09] Unpacked size: 35M
&gt; [00:00:09] Image size: 9,4M
&gt; [00:00:09] Image is saved as /boot/initrd-5.10.213-std-def-alt1-rescue.img

Файлы присутствуют на диске:

&gt; # ls /sbin/fsck.*
&gt; /sbin/fsck.btrfs   /sbin/fsck.exfat  /sbin/fsck.ext3  /sbin/fsck.ext4dev  /sbin/fsck.jfs    /sbin/fsck.vfat
&gt; /sbin/fsck.cramfs  /sbin/fsck.ext2   /sbin/fsck.ext4  /sbin/fsck.fat      /sbin/fsck.msdos  /sbin/fsck.xfs

Был использован файл /etc/initrd.mk.d/rescue.mk.example, ошибка присутствует как на p10, так и на sisyphus (на 18.06.2024).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247745</commentid>
    <comment_count>2</comment_count>
    <who name="Корытов Иван">boot.efi</who>
    <bug_when>2024-06-18 10:12:41 +0300</bug_when>
    <thetext>(Ответ для Корытов Иван на комментарий #1)

Ошибка связана с другой частью программы, вынес в отдельный багрепорт (https://bugzilla.altlinux.org/show_bug.cgi?id=50675).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248016</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-06-22 19:33:55 +0300</bug_when>
    <thetext>make-initrd-2.47.0-alt1 -&gt; sisyphus:

 Sat Jun 22 2024 Alexey Gladkov &lt;legion@altlinux.ru&gt; 2.47.0-alt1
 - Do not ignore an errors when copying files to initramfs (ALT#50483).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>