]> code.ossystems Code Review - openembedded-core.git/commit
wic: Switch to using --use-uuid by default
authorTom Rini <trini@konsulko.com>
Sat, 29 Jul 2017 00:14:33 +0000 (20:14 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Jul 2017 07:45:13 +0000 (08:45 +0100)
commit8a58e9bb3e76a9962f1d14a8bdd3f7de675c3492
tree03c4af94078dd1c209b79c065177e25145e22f79
parent929ba563f1bc7195c4981b8e139c432b2cc388ea
wic: Switch to using --use-uuid by default

The most portable way to specifiy a root device in a disk image that we
create is to use PARTUUID rather than /dev/sda2.  As background, both
GPT and MBR tables provide valid UUID values for each partition and the
Linux Kernel contains the logic to parse this value.  With this change
we can now boot the default disk images when used as any valid block
device that the included kernel uses.  This for example means that
VirtualBox can be used to run vmdk without changes as it uses IDE for
the virtual disk controller.

Cc: Matt Porter <mporter@konsulko.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/canned-wks/common.wks.inc
scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
scripts/lib/wic/canned-wks/qemux86-directdisk.wks