summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic
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:44 +0000
commitab7cb65ab574ab1bb99057b7cbe442fe5a14a9f8 (patch)
treefbf2cb775be50295459b3ed15896406d35e46e65 /scripts/lib/wic
parent51e0a8a1800ab72b5b9af6faa7d0a66c603c9650 (diff)
downloadpoky-ab7cb65ab574ab1bb99057b7cbe442fe5a14a9f8.tar.gz
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) (From OE-Core rev: 73e9e3f150bf2de9b27c2ccc73e3dee334ee73fe) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-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):
57 self.size = args.size 57 self.size = args.size
58 self.source = args.source 58 self.source = args.source
59 self.sourceparams = args.sourceparams 59 self.sourceparams = args.sourceparams
60 self.use_uuid = args.use_uuid
60 self.uuid = args.uuid 61 self.uuid = args.uuid
62 if args.use_uuid and not self.uuid:
63 self.uuid = str(uuid.uuid4())
61 64
62 self.lineno = lineno 65 self.lineno = lineno
63 self.source_file = "" 66 self.source_file = ""