src/gf-oemid: only operate on uncompressed images
@@ -18,6 +18,11 @@ src="$1"
dest="$2"
oemid="$3"
+if [[ $src == *.gz ]]; then
+ img="$(basename "$src")"
+ fatal "Cannot change coreos.oem.id on $img; not an uncompressed image"
+fi
+
set -x
tmpd=$(mktemp -td gf-oemid.XXXXXX)
tmp_dest=${tmpd}/box.img
