diff options
-rw-r--r-- | meta/classes/boot-directdisk.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass index 0f64b44f87..55357283ac 100644 --- a/meta/classes/boot-directdisk.bbclass +++ b/meta/classes/boot-directdisk.bbclass | |||
@@ -148,11 +148,12 @@ python do_bootdirectdisk() { | |||
148 | def generate_disk_signature(): | 148 | def generate_disk_signature(): |
149 | import uuid | 149 | import uuid |
150 | 150 | ||
151 | while True: | 151 | signature = str(uuid.uuid4())[:8] |
152 | signature = str(uuid.uuid4())[:8] | ||
153 | 152 | ||
154 | if signature != '00000000': | 153 | if signature != '00000000': |
155 | return signature | 154 | return signature |
155 | else: | ||
156 | return 'ffffffff' | ||
156 | 157 | ||
157 | def validate_disk_signature(d): | 158 | def validate_disk_signature(d): |
158 | import re | 159 | import re |