Skip to content

Commit 6e588fe

Browse files
committed
Use official Arch Linux download URL for SMACK CI
1 parent f5db3c9 commit 6e588fe

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

util/run-gnu-tests-smack-ci.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ mkdir -p "$SMACK_DIR"/{rootfs/{bin,lib64,proc,sys,dev,tmp,etc,gnu},kernel}
1717
# Download Arch Linux kernel (has SMACK built-in)
1818
if [ ! -f /tmp/arch-vmlinuz ]; then
1919
echo "Downloading Arch Linux kernel..."
20-
MIRROR="https://geo.mirror.pkgbuild.com/core/os/x86_64"
21-
KERNEL_PKG=$(curl -sL "$MIRROR/" | grep -oP 'linux-[0-9][^"]*-x86_64\.pkg\.tar\.zst' | grep -v headers | sort -V | tail -1)
22-
[ -z "$KERNEL_PKG" ] && { echo "Error: Could not find kernel package"; exit 1; }
23-
curl -sL -o /tmp/arch-kernel.pkg.tar.zst "$MIRROR/$KERNEL_PKG"
20+
curl -sL -o /tmp/arch-kernel.pkg.tar.zst "https://archlinux.org/packages/core/x86_64/linux/download/"
2421
zstd -d /tmp/arch-kernel.pkg.tar.zst -o /tmp/arch-kernel.pkg.tar 2>/dev/null || unzstd /tmp/arch-kernel.pkg.tar.zst -o /tmp/arch-kernel.pkg.tar
2522
VMLINUZ_PATH=$(tar -tf /tmp/arch-kernel.pkg.tar | grep 'vmlinuz$' | head -1)
2623
tar -xf /tmp/arch-kernel.pkg.tar -C /tmp "$VMLINUZ_PATH"

0 commit comments

Comments
 (0)