fix(arm): Add mounts for binds

This commit is contained in:
Tanguy Herbron 2024-06-25 15:18:26 +02:00
parent 3c187c8902
commit b512dbea6a

View File

@ -15,6 +15,10 @@ mkdir -p mnt
echo "Mounting second partition" echo "Mounting second partition"
sudo mount $RASPIOS_IMG -o offset=$((512*$OFFSET_IMG)) mnt sudo mount $RASPIOS_IMG -o offset=$((512*$OFFSET_IMG)) mnt
echo "Mounting necessary directories"
sudo mount -o bind /run mnt/run
sudo mount --rbind /dev mnt/dev
echo "Chroot into partition to start edition" echo "Chroot into partition to start edition"
sudo chroot mnt /bin/sh <<"EOT" sudo chroot mnt /bin/sh <<"EOT"