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