Skip to content

Commit e783ce1

Browse files
Copilot0xrinegade
andcommitted
Fix mkarchiso missing error by installing pacman and archiso on Ubuntu runner
Co-authored-by: 0xrinegade <[email protected]>
1 parent 8fb9b97 commit e783ce1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build-iso.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,35 @@ jobs:
6969
mtools \
7070
squashfs-tools
7171
72+
- name: Install pacman and archiso
73+
run: |
74+
# Install pacman on Ubuntu
75+
wget https://mirror.rackspace.com/archlinux/extra/os/x86_64/pacman-6.1.0-3-x86_64.pkg.tar.zst
76+
sudo apt-get install -y zstd
77+
sudo zstd -d pacman-6.1.0-3-x86_64.pkg.tar.zst
78+
sudo tar -xf pacman-6.1.0-3-x86_64.pkg.tar -C /
79+
80+
# Configure pacman
81+
sudo mkdir -p /etc/pacman.d
82+
sudo tee /etc/pacman.conf > /dev/null << 'EOF'
83+
[options]
84+
Architecture = x86_64
85+
CheckSpace
86+
87+
[core]
88+
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
89+
90+
[extra]
91+
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
92+
EOF
93+
94+
# Initialize pacman keyring
95+
sudo pacman-key --init
96+
sudo pacman-key --populate archlinux
97+
98+
# Install archiso
99+
sudo pacman -Sy --noconfirm archiso
100+
72101
- name: Create OSVMarchi ISO build environment
73102
run: |
74103
# Create working directory

0 commit comments

Comments
 (0)