mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Add -s to another parted line
This commit is contained in:
@@ -13,7 +13,7 @@ BACKINGFILES_MOUNTPOINT="$1"
|
||||
MUTABLE_MOUNTPOINT="$2"
|
||||
|
||||
setup_progress "Checking existing partitions..."
|
||||
PARTITION_TABLE=$(parted -m /dev/mmcblk0 unit B print)
|
||||
PARTITION_TABLE=$(parted -s -m /dev/mmcblk0 unit B print)
|
||||
DISK_LINE=$(echo "$PARTITION_TABLE" | grep -e "^/dev/mmcblk0:")
|
||||
DISK_SIZE=$(echo "$DISK_LINE" | cut -d ":" -f 2 | sed 's/B//' )
|
||||
|
||||
|
||||
@@ -170,6 +170,7 @@ function create_usb_drive_backing_files () {
|
||||
|
||||
if [ ! -e /dev/mmcblk0p3 ]
|
||||
then
|
||||
setup_progress "Starting to create backing files partition..."
|
||||
/tmp/create-backingfiles-partition.sh "$BACKINGFILES_MOUNTPOINT" "$MUTABLE_MOUNTPOINT"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user