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

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

    <bug>
          <bug_id>60825</bug_id>
          
          <creation_ts>2026-10-06 09:43:11 +0300</creation_ts>
          <short_desc>kopidel --list-exdrives отображает \x20 вместо пробелов в вендоре и модели внешнего  диска</short_desc>
          <delta_ts>2026-10-08 22:46:39 +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>alterator-kopidel</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</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="Антоненко Даниил">antonenkode</reporter>
          <assigned_to name="Ajrat Makhmutov">rauty</assigned_to>
          <cc>rauty</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>301288</commentid>
    <comment_count>0</comment_count>
    <who name="Антоненко Даниил">antonenkode</who>
    <bug_when>2026-10-06 09:43:11 +0300</bug_when>
    <thetext>Стенды с ошибкой:
=================
Тестовая ВМ ALT Workstation 11.2 x86_64 (ветка p11), внешний диск /dev/sdb (QEMU HARDDISK, 30 GiB).
Ранее ошибка воспроизводилась и на реальном стенде с NVMe-диском за мостом ASM (ASMT 2462 NVME).

Версия программы:
=================
alterator-kopidel 1.1.3-alt1

Шаги:
==========================
1. Подключить внешний диск (на ВМ — второй диск, /dev/sdb).
2. Выполнить команду:
# kopidel --list-exdrives

Ожидаемый результат:
====================
Вендор и модель диска отображаются обычными пробелами, как в источниках данных:
- /sys/block/sdb/device/model содержит «QEMU HARDDISK» с обычными пробелами;
- обычный вывод lsblk (без --raw) — обычные пробелы.
Пример:
/dev/sdb QEMU     QEMU HARDDISK 30Gi

Фактический результат:
======================
Пробелы заменены экранированными последовательностями \x20:
/dev/sdb QEMU\x20\x20\x20\x20 QEMU\x20HARDDISK 30Gi

Дополнительная информация:
==========================
* Также вопсроизводится с alterator-kopidel 1.1.2-alt1 (p11)
* Предполагаемая причина: /usr/libexec/alterator-kopidel/exdrives-list.sh перечисляет диски через «lsblk --raw», а в raw-режиме lsblk экранирует пробелы как \x20; хелпер передаёт строки в вывод без расшифровки. Код exdrives-list.sh не изменялся между 1.1.2-alt1 и 1.1.3-alt1 — ошибка прексистная. На реальном железе
затрагивает любой диск, в INQUIRY-строках которого есть пробелы (например: ASMT\x20\x20\x20\x20
2462\x20NVME).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301555</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-10-08 22:46:39 +0300</bug_when>
    <thetext>alterator-kopidel-1.1.5-alt1 -&gt; sisyphus:

Thu Oct 08 2026 Ajrat Makhmutov &lt;rauty@altlinux&gt; 1.1.5-alt1
- Ask before formatting the chosen external drive.
- Recalculate the targets when compression is toggled, since a
  compressed build needs a different amount of space.
- Stop offering the drive and the image of a running build as targets.
- Offer partitions mounted with errors=remount-ro as working
  directories, and keep autofs mount points out of the list.
- Show the external drives without the escapes of lsblk (Closes: 60825).
- Catch the unreplaced EFI device placeholder before installing GRUB.
- Fix an external drive build from the GUI leaving /image/Metadata in
  the system root and in every machine installed from the image.
- Fix a build copying the system with the ignored-files list of
  another kopidel run or of a target list refresh in the GUI.
- Fix a relative working directory or -X path failing the build.
- Fix kopidel hanging at full CPU on -X or -s given without a value.
- Fix the test of the compressed image failing at random.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>