From b42abbd4a274c026dcb0219e4fef92a1c9d12e7c Mon Sep 17 00:00:00 2001 From: gStart9 <106188942+gStart9@users.noreply.github.com> Date: Tue, 17 Jan 2023 16:52:55 +0000 Subject: [PATCH] Always invoke fdisk with `sudo fdisk` in build/raspberry-pi/make-image.sh (#2123) Always invoke fdisk with sudo fdisk --- build/raspberry-pi/make-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/raspberry-pi/make-image.sh b/build/raspberry-pi/make-image.sh index 675e86189..384cb7e65 100755 --- a/build/raspberry-pi/make-image.sh +++ b/build/raspberry-pi/make-image.sh @@ -24,7 +24,7 @@ truncate -s $TARGET_SIZE $TARGET_NAME echo 532480 echo echo w -) | fdisk $TARGET_NAME +) | sudo fdisk $TARGET_NAME export OUTPUT_DEVICE=$(sudo losetup --show -fP $TARGET_NAME) sudo e2fsck -f -y `partition_for ${OUTPUT_DEVICE} 2` sudo resize2fs `partition_for ${OUTPUT_DEVICE} 2`