mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
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:
committed by
Aiden McClelland
parent
730a55e721
commit
b42abbd4a2
@@ -24,7 +24,7 @@ truncate -s $TARGET_SIZE $TARGET_NAME
|
|||||||
echo 532480
|
echo 532480
|
||||||
echo
|
echo
|
||||||
echo w
|
echo w
|
||||||
) | fdisk $TARGET_NAME
|
) | sudo fdisk $TARGET_NAME
|
||||||
export OUTPUT_DEVICE=$(sudo losetup --show -fP $TARGET_NAME)
|
export OUTPUT_DEVICE=$(sudo losetup --show -fP $TARGET_NAME)
|
||||||
sudo e2fsck -f -y `partition_for ${OUTPUT_DEVICE} 2`
|
sudo e2fsck -f -y `partition_for ${OUTPUT_DEVICE} 2`
|
||||||
sudo resize2fs `partition_for ${OUTPUT_DEVICE} 2`
|
sudo resize2fs `partition_for ${OUTPUT_DEVICE} 2`
|
||||||
|
|||||||
Reference in New Issue
Block a user