feat: add arch track
This commit is contained in:
parent
b26b380f60
commit
0c2cd867ee
1 changed files with 72 additions and 0 deletions
72
arch.yaml
Normal file
72
arch.yaml
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
track: "base"
|
||||
|
||||
modules:
|
||||
- name: exec
|
||||
run: |
|
||||
for cmd in "$@"; do
|
||||
bash -s <<< "$cmd"
|
||||
done
|
||||
|
||||
- name: pacman-install
|
||||
run: |
|
||||
pacman -Syqu --noconfirm "$@" || pacman -Syqu --noconfirm "$@"
|
||||
|
||||
- name: pacman-remove
|
||||
run: |
|
||||
pacman -Rcns --noconfirm "$@"
|
||||
|
||||
stages:
|
||||
- module: pacman-install
|
||||
inputs:
|
||||
- "sudo"
|
||||
- "grub"
|
||||
- "nano"
|
||||
- "linux"
|
||||
- "linux-firmware"
|
||||
- "dracut"
|
||||
|
||||
distro-config:
|
||||
init-rootfs: |
|
||||
set -e
|
||||
|
||||
mkdir -m 0755 -p ./var/{cache/blendOS/pacman/pkg,lib/pacman,log} ./{dev,run,etc/pacman.d}
|
||||
mkdir -m 1777 -p ./tmp
|
||||
mkdir -m 0555 -p ./{sys,proc}
|
||||
|
||||
cat <<EOF >./etc/pacman.conf
|
||||
[options]
|
||||
HoldPkg = pacman glibc
|
||||
Architecture = auto
|
||||
CheckSpace
|
||||
ParallelDownloads = 5
|
||||
CacheDir = /var/cache/blendOS/pacman/pkg/
|
||||
SigLevel = Never
|
||||
LocalFileSigLevel = Never
|
||||
RemoteFileSigLevel = Never
|
||||
|
||||
[core]
|
||||
Server = https://fastly.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
|
||||
|
||||
[extra]
|
||||
Server = https://fastly.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
|
||||
|
||||
[multilib]
|
||||
Server = https://fastly.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
|
||||
EOF
|
||||
|
||||
pacman -Sy --config ./etc/pacman.conf --cachedir ./var/cache/blendOS/pacman/pkg -r . --needed --noconfirm base
|
||||
|
||||
ln -sfn usr/lib64 ./lib64
|
||||
ln -sfn usr/sbin ./sbin
|
||||
|
||||
can-update: |
|
||||
[ "$(checkupdates | wc -l)" -gt 0 ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue