From 865021beff680295cff81e0a6a9527922f3bf524 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 11 Aug 2021 16:14:46 -0400 Subject: [PATCH] Unack to rootfs This keeps things neutral and leaves the door open for multipart support --- imgutil/imgutil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])