Bug 60915
| Summary: | livecd-finish: скрипты из livecd-postinstall.d не запускаются из-за шаблона в кавычках | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Vera Blagoveschenskaya <vercha> |
| Component: | installer-alterator-livecd | Assignee: | Антон Мидюков <antohami> |
| Status: | RESOLVED FIXED | QA Contact: | qa-sisyphus |
| Severity: | enhancement | ||
| Priority: | P5 | CC: | antohami, rauty |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
installer-alterator-livecd-0.1.4-alt1 -> sisyphus: Mon Oct 12 2026 Anton Midyukov <antohami@altlinux> 0.1.4-alt1 - backend3/livecd-finish: fix script execution from livecd_postinstall_dir (Closes: 60915). |

Description
Vera Blagoveschenskaya 2026-10-12 12:12:53 MSKПакет: installer-alterator-livecd-0.1.3-alt1 В backend3/livecd-finish (функция run_postinstall, строка 23) цикл записан так: for f in "$run_postinstall_dir"/* "$livecd_postinstall_dir/*"; do Во втором элементе * стоит внутри кавычек, поэтому шаблон не раскрывается: в цикл попадает строка «/run/install2/livecd-postinstall.d/*», проверка [ -f "$f" -a -x "$f" ] её отбрасывает. В итоге скрипты из /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 "$run_postinstall_dir"/* "$livecd_postinstall_dir"/*; do