summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-02-13 11:02:18 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-15 16:28:23 +0000
commit73e9e3f150bf2de9b27c2ccc73e3dee334ee73fe (patch)
treef4156e14a88dcb02a0f1c218c3761da5dee8f83c
parentbe360c24649391235fd9547a8f2c1251b12e9c81 (diff)
downloadopenembedded-core-contrib-73e9e3f150bf2de9b27c2ccc73e3dee334ee73fe.tar.gz
openembedded-core-contrib-73e9e3f150bf2de9b27c2ccc73e3dee334ee73fe.tar.bz2
openembedded-core-contrib-73e9e3f150bf2de9b27c2ccc73e3dee334ee73fe.zip
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 <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/partition.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 9bb1a0ab9a..55bcfbad40 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 = ""