Skip to content

Commit

Permalink
mkvirtdisk: Add check for dosfstools
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Chan <[email protected]>
  • Loading branch information
erichchan999 authored and Ivan-Velickovic committed Aug 7, 2024
1 parent d13698b commit 01bdba6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/mkvirtdisk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ if [ $# -ne 4 ]; then
exit 1
fi

if ! command -v mkfs.fat &> /dev/null
then
echo "mkfs.fat could not be found, please install dosfstools"
exit 1
fi

DISK_IMAGE=$1
NUM_PARTITIONS=$2
LSIZE=$3
Expand Down

0 comments on commit 01bdba6

Please sign in to comment.