diff --git a/src/custompios b/src/custompios index 936c9cfd..7e732b90 100755 --- a/src/custompios +++ b/src/custompios @@ -91,7 +91,14 @@ pushd $BASE_WORKSPACE echo "Error: could not find image: $BASE_ZIP_IMG" exit 1 fi - 7za x -aoa "$BASE_ZIP_IMG" + + if [[ $BASE_ZIP_IMG =~ \.img$ ]]; then + # if the image is already extracted copy over + cp "$BASE_ZIP_IMG" . + else + 7za x -aoa "$BASE_ZIP_IMG" + fi + BASE_IMG_PATH=`ls | grep '.img$\|.raw$' | head -n 1` if [ ! -f "$BASE_IMG_PATH" ]; then echo "Error, can't find image path, did you place an image in the image folder?"