Remove sudo usage and add xz dependency
This commit is contained in:
parent
2b8a66e1b8
commit
9173c260ac
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user