From patchwork Thu Oct 19 21:05:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Logan Gunthorpe X-Patchwork-Id: 32600 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8D1DCDB465 for ; Thu, 19 Oct 2023 21:05:22 +0000 (UTC) Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by mx.groups.io with SMTP id smtpd.web11.39445.1697749519412144749 for ; Thu, 19 Oct 2023 14:05:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=qZUUeGrf; spf=pass (domain: deltatee.com, ip: 204.191.154.188, mailfrom: gunthorp@deltatee.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:MIME-Version:Message-Id:Date:Cc:To:From :references:content-disposition:in-reply-to; bh=6p61jqU7VfDeGH6Mja/z8IyKDuqO95sHXj1FxhMoaEQ=; b=qZUUeGrffStnrfsR/ebFEc0n56 g8cpU/6QJ2wX04WTCf5WRQ4saN/eaJP4H68RwdRLnlfTCT921cy3Lgl2MP5MUDIt+NxdAVhPz3vFP 4JMIdot2kUn+F7wm7VVLYYr/tc++whsTdttHAvROrNQ6qnH266Rjac17Cq+GK35IYu2yev3q9Thq3 PFUp1mvKfy/KYh0lz8NSVcAtFc31WiPtQvw+xvuT9ss2n1RS89SYhZyMaICP1776VGVAYdAqWAZLz N0YVGkoojSyx/ytp+XpguQMn4qmkkfQnSBhZbahiZ2EE9GOh6h3OYzkUblGVAfDtB2rnw+ObqywDk TkvE2cuw==; Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtaCj-000r0j-AJ; Thu, 19 Oct 2023 15:05:18 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.94.2) (envelope-from ) id 1qtaCi-000uW9-TF; Thu, 19 Oct 2023 15:05:16 -0600 From: Logan Gunthorpe To: openembedded-core@lists.openembedded.org Cc: Logan Gunthorpe Date: Thu, 19 Oct 2023 15:05:15 -0600 Message-Id: <20231019210515.217208-1-logang@deltatee.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: openembedded-core@lists.openembedded.org, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com Subject: [PATCH RESEND] runqemu: Add squashfs filesystem types X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 19 Oct 2023 21:05:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/189487 When using a squashfs filesystem type, runqemu requires specifying the full path to the image because it doesn't list squashfs types in its fstypes variable. Add them to provide the same support as other filesystem types. Signed-off-by: Logan Gunthorpe --- scripts/runqemu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) base-commit: f65f100bc5379c3153ee00b2aa62ea5c9a66ec79 -- 2.30.2 diff --git a/scripts/runqemu b/scripts/runqemu index 6fca7439a1d2..18aeb7f5f0cf 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -198,7 +198,9 @@ class BaseConfig(object): self.snapshot = False self.wictypes = ('wic', 'wic.vmdk', 'wic.qcow2', 'wic.vdi', "wic.vhd", "wic.vhdx") self.fstypes = ('ext2', 'ext3', 'ext4', 'jffs2', 'nfs', 'btrfs', - 'cpio.gz', 'cpio', 'ramfs', 'tar.bz2', 'tar.gz') + 'cpio.gz', 'cpio', 'ramfs', 'tar.bz2', 'tar.gz', + 'squashfs', 'squashfs-xz', 'squashfs-lzo', + 'squashfs-lz4', 'squashfs-zst') self.vmtypes = ('hddimg', 'iso') self.fsinfo = {} self.network_device = "-device e1000,netdev=net0,mac=@MAC@"