summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/boot-directdisk.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass
index c58c6f0c53..0f64b44f87 100644
--- a/meta/classes/boot-directdisk.bbclass
+++ b/meta/classes/boot-directdisk.bbclass
@@ -148,7 +148,11 @@ python do_bootdirectdisk() {
148def generate_disk_signature(): 148def generate_disk_signature():
149 import uuid 149 import uuid
150 150
151 return str(uuid.uuid4())[:8] 151 while True:
152 signature = str(uuid.uuid4())[:8]
153
154 if signature != '00000000':
155 return signature
152 156
153def validate_disk_signature(d): 157def validate_disk_signature(d):
154 import re 158 import re