Skip to content

Commit 984082c

Browse files
authored
chaotic
1 parent 001dafd commit 984082c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Github/Runners/bootstrap/cachyos.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
docker stop "cachyos-base" 2>/dev/null ; docker rm "cachyos-base" 2>/dev/null
2121
docker run --name "cachyos-base" --privileged "cachyos/cachyos-v3:latest" bash -l -c '
2222
#Bootstrap
23-
pacman -y --sync --refresh --refresh --sysupgrade --noconfirm --debug
23+
pacman -y --sync --refresh --sysupgrade --noconfirm --debug
2424
packages="bash binutils curl fakechroot fakeroot gawk git sed wget"
2525
for pkg in $packages; do pacman -Sy "${pkg}" --noconfirm ; done
2626
for pkg in $packages; do pacman -Sy "${pkg}" --needed --noconfirm ; done
@@ -49,8 +49,16 @@ fi
4949
echo "en_US.UTF-8 UTF-8" | tee -a "/etc/locale.gen"
5050
echo "LC_ALL=en_US.UTF-8" | tee -a "/etc/environment"
5151
locale-gen ; locale-gen "en_US.UTF-8"
52+
#Chaotic-AUR: https://aur.chaotic.cx/docs
53+
if [[ "$(uname -m | tr -d "[:space:]")" == "x86_64" ]]; then
54+
pacman-key --recv-key "3056513887B78AEB" --keyserver "keyserver.ubuntu.com"
55+
pacman-key --lsign-key "3056513887B78AEB"
56+
pacman -U "https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst" --noconfirm
57+
pacman -U "https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst" --noconfirm
58+
echo -e "[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" | tee -a "/etc/pacman.conf"
59+
fi
5260
#Cleanup
53-
pacman -y --sync --refresh --refresh --sysupgrade --noconfirm
61+
pacman -y --sync --refresh --sysupgrade --noconfirm
5462
pacman -Rsn base-devel --noconfirm
5563
pacman -Rsn perl --noconfirm
5664
pacman -Rsn python --noconfirm
@@ -133,4 +141,4 @@ docker push "pkgforge/cachyos-base:${D_TAG}"
133141
docker push "ghcr.io/pkgforge/devscripts/cachyos-base:${D_TAG}"
134142
docker push "pkgforge/cachyos-base:$(uname -m)"
135143
docker push "ghcr.io/pkgforge/devscripts/cachyos-base:$(uname -m)"
136-
#-------------------------------------------------------#
144+
#-------------------------------------------------------#

0 commit comments

Comments
 (0)