]> code.ossystems Code Review - openembedded-core.git/commit
wic: use Filesystem UUID when expand swap partition
authorLee Chee Yang <chee.yang.lee@intel.com>
Mon, 13 Apr 2020 11:00:54 +0000 (19:00 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Apr 2020 15:34:13 +0000 (16:34 +0100)
commit683297eefebe83f848daad9927871242ab28ef91
tree406aed2dbeb1bfe12670cf82633ed4ae837b9443
parentd77546e910ad9048f0057f4465716d417b810065
wic: use Filesystem UUID when expand swap partition

part.get("uuid") return the Partition UUID from the partition
table instead of Filesystem UUID. This lead to swap partition
UUID not match/change when wic write expand swap partition.

change it to read the filesystem UUID using blkid. The output
from blkid should looks like this:
wic-partvzhiwq3s: LABEL="swap1" UUID="04e55c19-3f3f-4491-9e32-44eea8daa827" VERSION="1" TYPE="swap" USAGE="other"

[YOCTO #13313]

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