]> code.ossystems Code Review - openembedded-core.git/commit
wic: generate PARTUUID for MDOS partitions
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 6 Oct 2016 10:33:36 +0000 (13:33 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Oct 2016 15:43:50 +0000 (16:43 +0100)
commit6ecc6addf4080eda75a15af077816c81c6bf70a5
treefc88ddc455ee8d2ac6072de99fe152a9533432d6
parent0c1804821917d6d3a062ca19b63667d030138f21
wic: generate PARTUUID for MDOS partitions

Added generation of partition UUIDs for MSDOS partitions.
UUID for MSDOS partitions is <disk identifier>-<partition number>,
where disk identifier is a random 4 bytes long number. It's usually
generated when MBR/partition table is initialized.

As UUID is used to point to the root partition in bootloader config
we need to generate it before the MBR is initialized.
After MBR is created we need to rewrite system identifier to match
it with what is used in bootloader config. This will be implemented
in the next commit.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/imager/direct.py
scripts/lib/wic/partition.py