使用者工具

網站工具


使用manjaro-tools_buildiso_liveiso

這是本文件的舊版!


https://wiki.manjaro.org/index.php/Build_Manjaro_ISOs_with_buildiso

Download the latest ISO profiles

git clone https://gitlab.manjaro.org/profiles-and-settings/iso-profiles.git ~/iso-profiles

修改要安裝的套件與 overlay 資料


mirror repo , put it in /srv/http/localhost/repository/localrep/

lr /srv/http/localhost/repository/localrep/stable/
total 16
drwxr-xr-x 3 feuer feuer 4096 Jun 13 15:10 multilib
drwxr-xr-x 3 feuer feuer 4096 Jun 13 15:50 core
drwxr-xr-x 3 feuer feuer 4096 Jun 13 19:01 community
drwxr-xr-x 3 feuer feuer 4096 Jun 15 00:00 extra

And active httpd service.


vi ~/.config/manjaro-tools/manjaro-tools.conf

chroots_dir=/mnt/N300_2/manjaro-tools-2
#build_mirror=file:///mnt/N300_2/Manjaro_repo/ ## 不可以用 file://,buildpkg 和 buildiso 無法在所有階段順利取得檔案。
build_mirror=http://localhost/repository/localrep
repo_tree=('core' 'extra' 'community' 'multilib')
host_tree=https://github.com/manjaro
host_tree_abs=git://projects.archlinux.org/svntogit
build_list_pkg=default
branch=v21.5
build_list_iso=default
kernel="linux510"

pacman.conf local repo (seems not necessary)

vi /etc/pacman.d/locallist

Server = http://localhost/repository/localrep/stable/$repo/$arch

vi /etc/pacman.conf

[core]
Include = /etc/pacman.d/locallist
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/locallist
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/locallist
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

[multilib]
Include = /etc/pacman.d/locallist
Include = /etc/pacman.d/mirrorlist

cd /srv/http/localhost/repository/online-repo/stable/x86_64
cp -a /var/cache/pacman/pkg/google-chrome-91.0.4472.114-1-x86_64.pkg.tar.zst .
repo-add online-repo.db.tar.gz *.pkg.tar.*

06-29 12:05 [root@92cafe x86_64]# repo-add online-repo.db.tar.gz *.pkg.tar.*
==> Extracting online-repo.db.tar.gz to a temporary location...
==> Extracting online-repo.files.tar.gz to a temporary location...
==> Adding package 'google-chrome-74.0.3729.131-1-x86_64.pkg.tar.xz'
==> WARNING: An entry for 'google-chrome-74.0.3729.131-1' already existed
  -> Computing checksums...
  -> Removing existing entry 'google-chrome-74.0.3729.131-1'...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package 'google-chrome-91.0.4472.114-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Removing existing entry 'google-chrome-74.0.3729.131-1'...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Creating updated database file 'online-repo.db.tar.gz'
06-29 12:07 [root@92cafe x86_64]# lr
total 168260
-rw-r--r-- 1 root  root   59782940 May  1  2019 google-chrome-74.0.3729.131-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root  root        655 May  3  2019 online-repo.db.tar.gz.old
-rw-r--r-- 1 root  root       1475 May  3  2019 online-repo.files.tar.gz.old
-rw-r--r-- 1 feuer feuer 112492074 Jun 20 11:32 google-chrome-91.0.4472.114-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root  root       1521 Jun 29 12:07 online-repo.files.tar.gz
-rw-r--r-- 1 root  root        675 Jun 29 12:07 online-repo.db.tar.gz
lrwxrwxrwx 1 root  root         21 Jun 29 12:07 online-repo.db -> online-repo.db.tar.gz
lrwxrwxrwx 1 root  root         24 Jun 29 12:07 online-repo.files -> online-repo.files.tar.gz

vi community/cinnamon/user-repos.conf

http://localhost/repository/online-repo/$repo/$arch\\

AFTER buildpkg -c -p cinnamon
mkdir ~/pkgbuild
pushd ~/pkgbuild


buildiso

執行 buildiso -p cinnamon 或 buildpkg -c

使用manjaro-tools_buildiso_liveiso.1624941515.txt.gz · 上一次變更: 2021/06/29 04:38 由 fire