]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: add option to specify the diskid
authorSteffen Greber <sgreber@lilafast.org>
Tue, 21 Oct 2025 09:47:38 +0000 (09:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Oct 2025 11:37:39 +0000 (11:37 +0000)
commita31453fd52e0a52f3fa02cb9ae0878ea3782c2b7
treeef8b72a4310e0f96b015b2f26140b8aa23911782
parentd3ec5a470bba069dee809780a5c892c7d52e05ac
wic: add option to specify the diskid

This adds a feature to specify the disk ID when creating a disk with
the wic tool. This is useful when using the DOS partition scheme and
booting with root=PARTUUID=<partuuid>. In DOS partitions, the partition
ID is <diskid>-<partition-number>, so it makes sense to let the user
define the disk ID.

You can specify it in the kickstart file using the --diskid argument
to the bootloader command. The value can be given in decimal or
hexadecimal format (e.g. 3735928559 or 0xdeadbeef). If omitted, the
previous behaviour does not change.

Signed-off-by: Steffen Greber <sgreber@lilafast.org>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/ksparser.py
scripts/lib/wic/plugins/imager/direct.py