feat: add new separate arch track
This commit is contained in:
parent
31081deeef
commit
5fb4bad4a9
2 changed files with 202 additions and 99 deletions
105
core-arch.yaml
Normal file
105
core-arch.yaml
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
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:
|
||||
- "git"
|
||||
- "sudo"
|
||||
- "grub"
|
||||
- "nano"
|
||||
- "linux"
|
||||
- "linux-firmware"
|
||||
- "dracut"
|
||||
- "python"
|
||||
- "python-yaml"
|
||||
- "python-click"
|
||||
- "python-fasteners"
|
||||
|
||||
- module: exec
|
||||
inputs:
|
||||
- |
|
||||
git clone --revision 8f5e52db0512ff5b2c35bddb1e9bc3be3795a5e0 --depth 1 https://git.ruds.io/rs2009/akshara /akshara
|
||||
cd /akshara
|
||||
cp -a usr/lib/akshara /usr/lib
|
||||
cp usr/bin/akshara /usr/bin
|
||||
- rm -rf /akshara
|
||||
|
||||
override:
|
||||
- path: /var/lib/pacman/
|
||||
keep: new
|
||||
|
||||
- path: /etc/pacman.conf
|
||||
keep: new
|
||||
|
||||
auto-update:
|
||||
enabled: true
|
||||
interval: 3600
|
||||
|
||||
distro-config:
|
||||
before-stages: |
|
||||
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
|
||||
|
||||
after-stages: |
|
||||
locale-gen
|
||||
dracut --force --regenerate-all
|
||||
|
||||
cd /usr/lib/modules
|
||||
kernels=(*)
|
||||
cp "${kernels[0]}"/vmlinuz /boot/vmlinuz-"${kernels[0]}"
|
||||
|
||||
should-update: |
|
||||
[ "$(checkupdates | wc -l)" -gt 0 ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue