From 3581873b417c6f3a1c0a0d1f1f189792538da580 Mon Sep 17 00:00:00 2001 From: Karl Date: Mon, 9 Jun 2025 13:51:05 +0100 Subject: [PATCH] run commands as sudo --- build_raspberry_pi.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build_raspberry_pi.sh b/build_raspberry_pi.sh index a8a5644..03a92d9 100755 --- a/build_raspberry_pi.sh +++ b/build_raspberry_pi.sh @@ -7,10 +7,10 @@ SCRIPT_DIR="$(dirname "$(realpath "$0")")" BUILD_DIR="${SCRIPT_DIR}/work/root/" # cleanup any previous build attempts -umount -fl "${BUILD_DIR}" || true -losetup -D /dev/loop0 || true -rm -rf "${BUILD_DIR}" || true -mkdir -p "${BUILD_DIR}" +sudo umount -fl "${BUILD_DIR}" || true +sudo losetup -D /dev/loop0 || true +sudo rm -rf "${BUILD_DIR}" || true +sudo mkdir -p "${BUILD_DIR}" # download a modern RaspiOS build if [ ! -f raspios.img.xz ]