summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/imager/direct.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/imager/direct.py')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index 0a65a9c58d..51bdd3a984 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -303,7 +303,7 @@ class PartitionedImage():
303 # all partitions (in bytes) 303 # all partitions (in bytes)
304 self.ptable_format = ptable_format # Partition table format 304 self.ptable_format = ptable_format # Partition table format
305 # Disk system identifier 305 # Disk system identifier
306 self.identifier = int.from_bytes(os.urandom(4), 'little') 306 self.identifier = int.from_bytes(os.urandom(4), 'little') or 0xffffffff
307 307
308 self.partitions = partitions 308 self.partitions = partitions
309 self.partimages = [] 309 self.partimages = []