Bug 53762 - Ошибка initinstall скрипта 91-pkg-size.sh при установки образа по сети (http, ftp)
Summary: Ошибка initinstall скрипта 91-pkg-size.sh при установки образа по сети (http,...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: installer-alterator-pkg (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Антон Мидюков
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-08 11:11 MSK by Sergey Ivanov
Modified: 2025-04-16 12:58 MSK (History)
7 users (show)

See Also:


Attachments
initinstall script error (28.45 KB, image/png)
2025-04-08 11:11 MSK, Sergey Ivanov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Ivanov 2025-04-08 11:11:13 MSK
Created attachment 18174 [details]
initinstall script error

Шаги воспроизведения:
Развернуть сервер сетевой установки (на образе alt-server-10.4-x86_64.iso)
- Создать директории для устанавливаемого образа
# mkdir -p /srv/public/netinst/mnt/
# mount /dev/sr0 /srv/public/netinst/mnt/
# echo "/dev/sr0 /srv/public/netinst/mnt udf,iso9660 ro 0 0" >> /etc/fstab
# mount /srv/public/netinst/mnt/

- Настроить ftp сервер:
# apt-get install -y vsftpd
# sed -i "s/disable.*/disable = no/" /etc/xinetd.d/vsftpd
# sed -i "s,},only_from = 0/0," /etc/xinetd.d/vsftpd; echo } >> /etc/xinetd.d/vsftpd
# systemctl enable --enable xinetd

- Настроить http сервер:
# apt-get install -y apache2
# cat > /etc/httpd2/conf/sites-available/netinst.conf << EOF
<VirtualHost *:80>
  DocumentRoot /srv/public/netinst/mnt/
  <Directory /srv/public/netinst/mnt/>
    Options +FollowSymLinks -Indexes
    AllowOverride None
    Require all granted
  </Directory>
</VirtualHost>
EOF
# a2dissite 000-default
# a2dissite 000-default_https
# a2ensite netinst
# sed -ie 's/Require all denied/Require all granted/' /etc/httpd2/conf/include/Directory_root_default.conf
# systemctl enable --now httpd2

- На машине клиента в bootmenu выбрать устанавливаемый образ
- Выбрать пункт *Установка ALT ...*, нажать *e* добавить следующие параметры:
Для ftp:
ip=dhcp automatic=method:ftp,server:192.168.0.1,directory:/netinst/mnt/
Для http:
ip=dhcp automatic=method:http,server:192.168.0.1,directory:/

Результат:
При запуске сетевой установки по http и ftp появляются следующие ошибки:
Running initinstall script [90-pkg.sh] cp-metadata: Successfuly fetched metadata file http://192.168.0.1//Metadata/pkg-groups.tar. Store it as /tmp/pkg-groups.tar.tmp
cp-metadata: Rename /tmp/pkg-groups.tar.tmp -> /tmp/pkg-groups.tar
                                                                        [ DONE ]
Running initinstall script [91-pkg-size.sh] Get:1 http://192.168.0.1 ALTLinux release [1059B]
Fetched 1059B in 0s (86.0kB/s)
Get:1 http://192.168.0.1 ALTLinux/main pkglist [3859kB]
Get:2 http://192.168.0.1 ALTLinux/main release [123B]
Get:3 http://192.168.0.1 ALTLinux/main pkglist [3859kB]
Get:4 http://192.168.0.1 ALTLinux/main release [123B]
Err http://192.168.0.1 ALTLinux/main pkglist
  Could not open file /mnt/destination/var/lib/apt/lists/partial/192.168.0.1_ALTLinux_base_pkglist.main - open (2 No such file or directory)
Fetched 3860kB in 0s (10.8MB/s)
E: Failed to fetch http://192.168.0.1/ALTLinux/base/pkglist.main  Could not open file /mnt/destination/var/lib/apt/lists/partial/192.168.0.1_ALTLinux_base_pkglist.main - open (2 No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.
xz: (stdin): File format not recognized
                                                                        [FAILED]
Running initinstall script [98-oem.sh]                                  [ DONE ]

Примечание:
Данная ошибка не воспроизводится при установке по nfs и samba
Comment 1 Repository Robot 2025-04-16 12:58:17 MSK
installer-alterator-pkg-3.1.14-alt1.1 -> sisyphus:

 Wed Apr 16 2025 Anton Midyukov <antohami@altlinux> 3.1.14-alt1.1
 - initinstall.d/90-pkg.sh: dedup components in source.list (Closes: 53762)