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

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

    <bug>
          <bug_id>43793</bug_id>
          
          <creation_ts>2022-09-14 19:37:27 +0300</creation_ts>
          <short_desc>Пустая переменная окружения CDROMDEV вызывает некорректную работа скрипта 90-pkg.sh из installer-feature-repo-add</short_desc>
          <delta_ts>2022-10-02 17:58:49 +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>installer</component>
          <version>не указана</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>jqt4</reporter>
          <assigned_to name="Антон Мидюков">antohami</assigned_to>
          <cc>mike</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>214900</commentid>
    <comment_count>0</comment_count>
    <who name="">jqt4</who>
    <bug_when>2022-09-14 19:37:27 +0300</bug_when>
    <thetext>Устанавливаю тестовый ISO образ alt-server на Intel Nuc c SSD, подключенного по USB.
В установщике раздел SSD с ISO образом выглядит как /dev/sda1
На этапе postinstall получаю сбой в скрипте 90-pkg.sh и некорректную запись в fstab вида:

UUID=2d85209b-275a-4456-b0f4-98ac1acb160b
a9ffa983-b014-47fb-bd8d-45958e512162
2022-09-14-10-56-46-00
993F-0FCE       /media/ALTLinux udf,iso9660 ro,noauto,user,utf8,nofail,comment=x-gvfs-show  0 0

Эта запись формируется в скрипте 90-pkg.sh
https://git.altlinux.org/gears/i/installer-feature-repo-add.git?p=installer-feature-repo-add.git;a=blob;f=installer-feature-repo-add/postinstall.d/90-pkg.sh;h=6eae9ec38312aa1348132993987aa317280a1bb8;hb=5202b54c845337f4fd89ac796e2f9bc4f07b9f2e#l36
https://git.altlinux.org/gears/i/installer-feature-repo-add.git?p=installer-feature-repo-add.git;a=blob;f=installer-feature-repo-add/postinstall.d/90-pkg.sh;h=6eae9ec38312aa1348132993987aa317280a1bb8;hb=5202b54c845337f4fd89ac796e2f9bc4f07b9f2e#l42
с использованием переменных окружения $DEVICE$CDROMDEV

Обе эти переменные содержат пустые строки.

Предполагаю, что строка $CDROMDEV делается пустой в результате исправления в скрипте installer/scripts/install2 из пакета installer
https://git.altlinux.org/gears/i/installer.git?p=installer.git;a=commitdiff;h=8f25c934e344748878d42d4c9781b98e066ab79f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214906</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2022-09-15 00:13:52 +0300</bug_when>
    <thetext>Такая же проблема будет при выборе method=disk, но немного другая. Обе переменные назначены:
CDROMDEV=&quot;UUID=$(blkid -o value -s UUID $DEVICE$CDROMDEV)&quot;
при загрузке с флэшки:
CDROMDEV=&quot;UUID=$(blkid -o value -s UUID sdb1/dev/sdb1)&quot;

Но это не регресс. Раньше такая же дребедень была.
А значит и раньше в legacy с syslinux + gfxboot при загрузке с флешки была проблема с неправильной записью в /etc/fstab.

Обе проблемы должны быть исправлены заданием:
#306814 FAILED #1 [test-only] p10 installer.git=1.12.4-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215461</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2022-09-30 12:24:29 +0300</bug_when>
    <thetext>[#306814] p10 DONE (try 3) installer.git=1.12.4-alt1

Thu Sep 15 2022 Anton Midyukov &lt;antohami at altlinux&gt; 1.12.4-alt1
 - install2: add set_device for define $DEVICE variable (Closes: 43793)
 - install2: assign $CDROMDEV variable for /dev/cdrom*|/dev/dvd* also</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>