]> code.ossystems Code Review - openembedded-core.git/commit
wic/direct/kparser: ensure fsuuid for vfat and msdos align with format
authorLee Chee Yang <chee.yang.lee@intel.com>
Fri, 1 Jan 2021 06:18:28 +0000 (14:18 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Jan 2021 23:14:52 +0000 (23:14 +0000)
commitd9686ae511ef10a504becfd81bfe296b788e1456
tree7f077349b811aaaee6b1a4ae45c327971b56b494
parent15a21998ef8898e11481e77535550fa7ddfd4705
wic/direct/kparser: ensure fsuuid for vfat and msdos align with format

vfat/msdos filesystem should have fsuuid in format 0xYYYYYYYY where "0x"
in front follow with 8 hexadecimal number in uppercase. In wic, when using
custom fsuuid for vfat/msdos partition in wks, it is able to set the value
in any length, with or without leading "0x". This can cause fsuuid
missaligned when fstab updates, fstab expect exactly 10 character
fsuuid for vfat/msdos partition and all in uppercase.

if custom fsuuid for vfat/msdos is set, check the length and format,
error if it exceed the format size. Amend it so it is align with format
0xYYYYYYYY. This is done before image create and fstab update to ensure the
fsuuid are same in all followup process. if custom fsuuid length less than
expected, fill in "0".

[YOCTO #14161]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/ksparser.py
scripts/lib/wic/plugins/imager/direct.py