From 50e53925e107526915d9bd06b48884c9a574d083 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Mon, 9 Jun 2014 11:42:12 -0400 Subject: [PATCH] Use correct path when extracting tar.gz image Fix issue with file:/ image urls. Change-Id: I8c5f5b27b5d6ebe5be84dc58d37752adbd12f89b Closes-Bug: 1277609 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 80f98adfb2..b1317c59af 100644 --- a/functions +++ b/functions @@ -246,7 +246,7 @@ function upload_image { xdir="$FILES/images/$IMAGE_NAME" rm -Rf "$xdir"; mkdir "$xdir" - tar -zxf $FILES/$IMAGE_FNAME -C "$xdir" + tar -zxf $IMAGE -C "$xdir" KERNEL=$(for f in "$xdir/"*-vmlinuz* "$xdir/"aki-*/image; do [ -f "$f" ] && echo "$f" && break; done; true) RAMDISK=$(for f in "$xdir/"*-initrd* "$xdir/"ari-*/image; do