diff --git a/imgutil/imgutil b/imgutil/imgutil index 071d5afa..262396e5 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -840,7 +840,7 @@ def unpack_image(opts, args): raise Exception('Unrecognized image format') mkdirp(scratchdir) os.chdir(scratchdir) - subprocess.check_call(['unsquashfs', indir]) + subprocess.check_call(['unsquashfs', '-d', 'rootfs', indir]) finally: if cleandmtable: subprocess.check_call(['dmsetup', 'remove', cleandmtable])