mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
gamescope build: pacman without its download sandbox inside the container
This commit is contained in:
1 parent
23f3e3ccf7
commit
9841899cff
1 file changed
+3
@@ -7,6 +7,9 @@ set -euxo pipefail
|
||||
VERSION=${GAMESCOPE_VERSION:-3.16.29}
|
||||
WORK=/work
|
||||
cd "$WORK"
|
||||
# pacman's download sandbox (Landlock + the alpm user) cannot be set up inside the runner's
|
||||
# container; the packages still come signed from Arch Linux ARM's mirrors.
|
||||
grep -q '^DisableSandbox' /etc/pacman.conf || sed -i 's/^\[options\]/[options]\nDisableSandbox/' /etc/pacman.conf
|
||||
pacman -Syu --noconfirm --needed git sudo zstd binutils
|
||||
# makepkg refuses root; a builder user with passwordless sudo installs the dependencies.
|
||||
id builder >/dev/null 2>&1 || useradd -m builder
|
||||
|
||||
Reference in new issue
Block a user