3 # To call this script, make sure make_ext4fs is somewhere in PATH
8 mkuserimg.sh SRC_DIR OUTPUT_FILE EXT_VARIANT LABEL SIZE
12 echo "in mkuserimg.sh PATH=$PATH"
14 if [ $# -ne 4 -a $# -ne 5 ]; then
20 if [ ! -d $SRC_DIR ]; then
21 echo "Can not find directory $SRC_DIR!"
32 *) echo "Only ext4 is supported!"; exit 3 ;;
35 if [ -z $LABEL ]; then
36 echo "Label is required"
44 echo "make_ext4fs -l $SIZE -a $LABEL $OUTPUT_FILE $SRC_DIR"
45 make_ext4fs -l $SIZE -a $LABEL $OUTPUT_FILE $SRC_DIR