summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-06-17 10:56:54 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-17 10:56:54 +0200
commit3c3d6295e6209d86418563b15a990ace7b9a3294 (patch)
tree8168c50d33d1404c6792c9464d6a935b8a5c5422
parent07755535acfa81d3e67cf82b6f21efbb9011cdf7 (diff)
downloadgenimage-3c3d6295e6209d86418563b15a990ace7b9a3294.tar.gz
genimage-3c3d6295e6209d86418563b15a990ace7b9a3294.tar.xz
image-tar: use mountpath()
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--image-tar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/image-tar.c b/image-tar.c
index 78decbd..01533e4 100644
--- a/image-tar.c
+++ b/image-tar.c
@@ -33,10 +33,10 @@ static int tar_generate(struct image *image)
if (strstr(image->file, ".tar.bz2"))
comp = "j";
- ret = systemp(image, "%s c%s -f %s -C %s/%s .",
+ ret = systemp(image, "%s c%s -f %s -C %s .",
get_opt("tar"),
comp,
- imageoutfile(image), rootpath(), image->mountpoint);
+ imageoutfile(image), mountpath(image));
return ret;
}