From 058a90c3d2c4ffcd92b1bc7d0e92330277e02442 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 26 Jan 2010 19:53:08 +0100 Subject: check for mkfs utils --- scripts/create-image.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/create-image.sh b/scripts/create-image.sh index 4a23b49cf..96a96ced8 100755 --- a/scripts/create-image.sh +++ b/scripts/create-image.sh @@ -24,6 +24,16 @@ if [ $(id -u) -ne 0 ];then exit 1 fi +printf "Checking if mkfs is installed" +mkfs=$(which mkfs.$filesystem) + +if [ ! -z $mkfs -a -x $mkfs ];then + printf "...okay\n" +else + printf "...failed\n" + exit 1 +fi + printf "Checking if parted is installed" parted=$(which parted) -- cgit v1.2.3