Always invoke fdisk with sudo fdisk in build/raspberry-pi/make-image.sh (#2123)

Always invoke fdisk with sudo fdisk
This commit is contained in:
gStart9
2023-01-17 16:52:55 +00:00
committed by Aiden McClelland
parent 730a55e721
commit b42abbd4a2

View File

@@ -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`