mkimage_profiles_сборка_alt_образование

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mkimage_profiles_сборка_alt_образование [2023/01/07 13:37] – created mariafmkimage_profiles_сборка_alt_образование [2024/10/23 19:30] (current) keremet
Line 1: Line 1:
-mkimage-profiles: сборка "ALT Образование" +======  mkimage-profiles: сборка "ALT Образование" ======  
-Подготовка ОС+ 
 +**Подготовка ОС**
  
 Установить пакеты Установить пакеты
  
-sudo apt-get install mkimage mkimage-preinstall hasher git-core+  sudo apt-get install mkimage mkimage-preinstall hasher git-core 
 +  
 Добавить своего пользователя в группы, необходимые для запуска hasher Добавить своего пользователя в группы, необходимые для запуска hasher
  
-sudo hasher-useradd $USER+  sudo hasher-useradd $USER 
 +  
 В /etc/hasher-priv/system добавить строчку: allowed_mountpoints=/proc В /etc/hasher-priv/system добавить строчку: allowed_mountpoints=/proc
  
 Перелогиниться. Перелогиниться.
  
-Подготовка каталога для сборки+**Подготовка каталога для сборки**
  
 Создать каталог и перейти в него Создать каталог и перейти в него
  
-mkdir ~/ao_build +  mkdir ~/ao_build 
-cd $_+  cd $_ 
 +  
 Создать конфигурационные файлы для сборки из собственных пакетов и репозитория p10 с кэшированием Создать конфигурационные файлы для сборки из собственных пакетов и репозитория p10 с кэшированием
 +<code> 
 +#каталоги для кэша пакетов
 mkdir -p apt/lists/partial mkdir -p apt/lists/partial
 mkdir -p apt/cache/p10/archives/partial mkdir -p apt/cache/p10/archives/partial
 +#каталог для пакетов, которых нет в репозитории
 mkdir -p x86_64/RPMS.dir mkdir -p x86_64/RPMS.dir
 +#каталог для установочных образов
 mkdir out mkdir out
  
Line 39: Line 46:
 rpm http://mirror.yandex.ru/altlinux p10/branch/x86_64-i586 classic rpm http://mirror.yandex.ru/altlinux p10/branch/x86_64-i586 classic
 rpm http://mirror.yandex.ru/altlinux p10/branch/noarch classic rpm http://mirror.yandex.ru/altlinux p10/branch/noarch classic
-rpm-dir file:$PWD x86_64 dir+rpm-dir file:$PWD hasher/repo/x86_64 hasher
 EOF EOF
 +</code>
 +
 +
 +  git clone http://git.altlinux.org/gears/m/mkimage-profiles.git -b p10
 +
 +#Более свежая версия тут 
 +
 +  git clone http://git.altlinux.org/people/sem/public/mkimage-profiles.git -b alt-p10
 +
 +
  
-git clone http://git.altlinux.org/gears/m/mkimage-profiles.git -b p10 
 Собственные пакеты разместить в x86_64/RPMS.dir/ Собственные пакеты разместить в x86_64/RPMS.dir/
  
 Получение списка целей Получение списка целей
  
-make -C mkimage-profiles help+  make -C mkimage-profiles help 
 +  
 Запуск сборки «ALT Образование» Запуск сборки «ALT Образование»
 +<code>
 make -C mkimage-profiles BRANCH=p10 ARCH=x86_64 APTCONF=$PWD/apt/apt.conf.p10.x86_64 IMAGEDIR=$PWD/out alt-education.iso make -C mkimage-profiles BRANCH=p10 ARCH=x86_64 APTCONF=$PWD/apt/apt.conf.p10.x86_64 IMAGEDIR=$PWD/out alt-education.iso
 +</code>
 +
 Лог будет в mkimage-profiles/build/build.log Лог будет в mkimage-profiles/build/build.log
  
 Подробнее — в каталоге doc исходников mkimage-profiles и на https://www.altlinux.org/Mkimage-profiles Подробнее — в каталоге doc исходников mkimage-profiles и на https://www.altlinux.org/Mkimage-profiles
  
-mkimage-profiles: сборка &quot;ALT Образование&quot;, изображение №1+При сборке образа на основе Сизифа: 
 + 
 +<code> 
 +cat <<EOF > apt/apt.conf.sisyphus.x86_64  
 +Dir::Etc::SourceList "$PWD/apt/sources.list.sisyphus.x86_64"; 
 +Dir::Etc::SourceParts /var/empty; 
 +Dir::Etc::main "/dev/null"; 
 +Dir::Etc::parts "/var/empty"; 
 +APT::Architecture "64"; 
 +Dir::State::lists "$PWD/apt/lists/"; 
 +Dir::Cache "$PWD/apt/cache/sisyphus/"; 
 +EOF 
 +</code> 
 + 
 +<code> 
 +cat <<EOF > apt/sources.list.sisyphus.x86_64 
 +rpm http://mirror.yandex.ru/altlinux Sisyphus/x86_64 classic 
 +rpm http://mirror.yandex.ru/altlinux Sisyphus/x86_64-i586 classic 
 +rpm http://mirror.yandex.ru/altlinux Sisyphus/noarch classic 
 +rpm-dir file:$PWD x86_64 dir 
 +EOF 
 +</code> 
 + 
 +<code> 
 +git clone http://git.altlinux.org/gears/a/alterator-sysconfig.git  
 +mkdir hasher 
 +hsh --initroot-only --apt-config=$PWD/apt/apt.conf.sisyphus.x86_64 hasher 
 +cd alterator-sysconfig/ 
 +gear --commit --hasher -- hsh-rebuild --no-sisyphus-check=packager,gpg,changelog ../hasher 
 +</code>
  
 +<code>
 +make -C mkimage-profiles BRANCH=Sisyphus ARCH=x86_64 APTCONF=$PWD/apt/apt.conf.sisyphus.x86_64 IMAGEDIR=$PWD/out regular-xfce.iso
 +</code>
mkimage_profiles_сборка_alt_образование.1673098620.txt.gz · Last modified: 2023/01/07 13:37 by mariaf