From 9173c260aca703c706ff5f94da4fb551f7ce717f Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Wed, 25 May 2022 12:43:07 +0200 Subject: [PATCH] Remove sudo usage and add xz dependency --- .gitlab-ci.yml | 2 +- arm64-build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42656ac..dea5465 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,7 +31,7 @@ build-arm64: stage: build script: - apt update - - apt install -y curl + - apt install -y curl xz - ./arm64-build.sh artifacts: paths: diff --git a/arm64-build.sh b/arm64-build.sh index 3da00cb..4f90375 100755 --- a/arm64-build.sh +++ b/arm64-build.sh @@ -13,10 +13,10 @@ OFFSET_IMG=$(file $RASPIOS_IMG | cut -d';' -f3 | cut -d',' -f8 | cut -d' ' -f3) mkdir -p mnt 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" -sudo chroot mnt /bin/sh <<"EOT" +chroot mnt /bin/sh <<"EOT" usermod -l creator pi usermod -d /home/creator -m creator