Remove sudo usage and add xz dependency

This commit is contained in:
Tanguy Herbron 2022-05-25 12:43:07 +02:00
parent 2b8a66e1b8
commit 9173c260ac
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ build-arm64:
stage: build stage: build
script: script:
- apt update - apt update
- apt install -y curl - apt install -y curl xz
- ./arm64-build.sh - ./arm64-build.sh
artifacts: artifacts:
paths: paths:

View File

@ -13,10 +13,10 @@ OFFSET_IMG=$(file $RASPIOS_IMG | cut -d';' -f3 | cut -d',' -f8 | cut -d' ' -f3)
mkdir -p mnt mkdir -p mnt
echo "Mounting second partition" echo "Mounting second partition"
sudo mount $RASPIOS_IMG -o offset=$((512*$OFFSET_IMG)) mnt mount $RASPIOS_IMG -o offset=$((512*$OFFSET_IMG)) mnt
echo "Chroot into partition to start edition" echo "Chroot into partition to start edition"
sudo chroot mnt /bin/sh <<"EOT" chroot mnt /bin/sh <<"EOT"
usermod -l creator pi usermod -l creator pi
usermod -d /home/creator -m creator usermod -d /home/creator -m creator