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

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

    <bug>
          <bug_id>60915</bug_id>
          
          <creation_ts>2026-10-12 12:12:53 +0300</creation_ts>
          <short_desc>livecd-finish: скрипты из livecd-postinstall.d не запускаются из-за шаблона в кавычках</short_desc>
          <delta_ts>2026-10-12 15:39:53 +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>installer-alterator-livecd</component>
          <version>unstable</version>
          <rep_platform>all</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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vera Blagoveschenskaya">vercha</reporter>
          <assigned_to name="Антон Мидюков">antohami</assigned_to>
          <cc>antohami</cc>
    
    <cc>rauty</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>301806</commentid>
    <comment_count>0</comment_count>
    <who name="Vera Blagoveschenskaya">vercha</who>
    <bug_when>2026-10-12 12:12:53 +0300</bug_when>
    <thetext>Пакет: installer-alterator-livecd-0.1.3-alt1

В backend3/livecd-finish (функция run_postinstall, строка 23) цикл записан так:

    for f in &quot;$run_postinstall_dir&quot;/* &quot;$livecd_postinstall_dir/*&quot;; do

Во втором элементе * стоит внутри кавычек, поэтому шаблон не раскрывается: в цикл попадает строка «/run/install2/livecd-postinstall.d/*», проверка [ -f &quot;$f&quot; -a -x &quot;$f&quot; ] её отбрасывает. В итоге скрипты из /usr/lib/alterator/hooks/livecd-postinstall.d, которые preinstall.d/99-livecd-postinstall.sh копирует в $destdir/run/install2/, не выполняются никогда.

Сейчас на поведение это не влияет: в образе regular-xfce 20260930 каталог livecd-postinstall.d пустой. Но любой скрипт, положенный туда, будет молча пропущен.

Ожидаемо:

    for f in &quot;$run_postinstall_dir&quot;/* &quot;$livecd_postinstall_dir&quot;/*; do</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301833</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-10-12 15:39:53 +0300</bug_when>
    <thetext>installer-alterator-livecd-0.1.4-alt1 -&gt; sisyphus:

Mon Oct 12 2026 Anton Midyukov &lt;antohami@altlinux&gt; 0.1.4-alt1
- backend3/livecd-finish: fix script execution from livecd_postinstall_dir
  (Closes: 60915).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>