From patchwork Wed Dec 25 12:29:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Gloor X-Patchwork-Id: 54688 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 CAF55E7718B for ; Wed, 25 Dec 2024 12:30:04 +0000 (UTC) Received: from mxout014.mail.hostpoint.ch (mxout014.mail.hostpoint.ch [217.26.49.174]) by mx.groups.io with SMTP id smtpd.web11.6494.1735129795648791492 for ; Wed, 25 Dec 2024 04:29:56 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: stefan-gloor.ch, ip: 217.26.49.174, mailfrom: code@stefan-gloor.ch) Received: from [10.0.2.46] (helo=asmtp013.mail.hostpoint.ch) by mxout014.mail.hostpoint.ch with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1 (FreeBSD)) (envelope-from ) id 1tQQWP-00000000K3v-1lMi; Wed, 25 Dec 2024 13:29:53 +0100 Received: from [178.197.222.20] (helo=localhost.localdomain) by asmtp013.mail.hostpoint.ch with esmtpa (Exim 4.97.1 (FreeBSD)) (envelope-from ) id 1tQQWP-000000005sI-1DyM; Wed, 25 Dec 2024 13:29:53 +0100 X-Authenticated-Sender-Id: code@stefan-gloor.ch From: Stefan Gloor To: openembedded-core@lists.openembedded.org Cc: Stefan Gloor Subject: [PATCH v2] wic: add documentation for existing options to help.py Date: Wed, 25 Dec 2024 13:29:19 +0100 Message-ID: <20241225122918.31867-2-code@stefan-gloor.ch> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Vs-State: 0 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 ; Wed, 25 Dec 2024 12:30:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209080 Add wic kickstart help for undocumented options for part/partition and bootloader command. Signed-off-by: Stefan Gloor --- scripts/lib/wic/help.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 163535e431..9180d75a92 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py @@ -916,6 +916,10 @@ DESCRIPTION will create empty partition. --size parameter has to be used to specify size of empty partition. + --sourceparams: This option is specific to wic. Supply additional + parameters to the source plugin in + key1=value1,key2 format. + --ondisk or --ondrive: Forces the partition to be created on a particular disk. @@ -932,6 +936,7 @@ DESCRIPTION squashfs erofs swap + none --fsoptions: Specifies a free-form string of options to be used when mounting the filesystem. This string @@ -965,6 +970,14 @@ DESCRIPTION to start a partition on an x KBytes boundary. + --offset: This option is specific to wic that says to place a partition + at exactly the specified offset. If the partition cannot be + placed at the specified offset, the image build will fail. + Specify as an integer value optionally followed by one of the + units s/S for 512 byte sector, k/K for kibibyte, M for + mebibyte and G for gibibyte. The default unit if none is + given is k. + --no-table: This option is specific to wic. Space will be reserved for the partition and it will be populated but it will not be added to the @@ -1045,6 +1058,18 @@ DESCRIPTION not take effect when --mkfs-extraopts is used. This should be taken into account when using --mkfs-extraopts. + --type: This option is specific to wic. Valid values are 'primary', + 'logical'. For msdos partition tables, this option specifies + the partition type. + + --hidden: This option is specific to wic. This option sets the + RequiredPartition bit (bit 0) on GPT partitions. + + --mbr: This option is specific to wic. This option is used with the + gpt-hybrid partition type that uses both a GPT partition and + an MBR header. Partitions with this flag will be included in + this MBR header. + * bootloader This command allows the user to specify various bootloader @@ -1063,6 +1088,13 @@ DESCRIPTION file. Using this option will override any other bootloader option. + --ptable: Specifies the partition table format. Valid values are + 'msdos', 'gpt', 'gpt-hybrid'. + + --source: Specifies the source plugin. If not specified, the + --source value will be copied from the partition that has + /boot as mountpoint. + Note that bootloader functionality and boot partitions are implemented by the various --source plugins that implement bootloader functionality; the bootloader command essentially