diff options
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r-- | scripts/lib/wic/partition.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 = "" |