From: Ed Bartosh Date: Sat, 13 Feb 2016 09:02:18 +0000 (+0200) Subject: wic: fix processing of --use-uuid X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26999 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e9e3f150bf2de9b27c2ccc73e3dee334ee73fe;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic: fix processing of --use-uuid Processing of this option was lost during recent change of wks parsting. It was discovered during the work on booting wic images under qemu. Now, when -use-uuid is fixed it's possible to specify root partition by partition uuid. This will be done in the following commit. (From OE-Core rev: b4882e0b84d7fd4c85ee95386e94722485eafc2b) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 9bb1a0ab9a8..55bcfbad40a 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py @@ -57,7 +57,10 @@ class Partition(object): self.size = args.size self.source = args.source self.sourceparams = args.sourceparams + self.use_uuid = args.use_uuid self.uuid = args.uuid + if args.use_uuid and not self.uuid: + self.uuid = str(uuid.uuid4()) self.lineno = lineno self.source_file = ""