diff options
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index da483daed5..6faa16bf9b 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -310,7 +310,10 @@ class PartitionedImage(): | |||
310 | # all partitions (in bytes) | 310 | # all partitions (in bytes) |
311 | self.ptable_format = ptable_format # Partition table format | 311 | self.ptable_format = ptable_format # Partition table format |
312 | # Disk system identifier | 312 | # Disk system identifier |
313 | self.identifier = random.SystemRandom().randint(1, 0xffffffff) | 313 | if os.getenv('SOURCE_DATE_EPOCH'): |
314 | self.identifier = random.Random(int(os.getenv('SOURCE_DATE_EPOCH'))).randint(1, 0xffffffff) | ||
315 | else: | ||
316 | self.identifier = random.SystemRandom().randint(1, 0xffffffff) | ||
314 | 317 | ||
315 | self.partitions = partitions | 318 | self.partitions = partitions |
316 | self.partimages = [] | 319 | self.partimages = [] |