diff options
-rw-r--r-- | meta/classes/boot-directdisk.bbclass | 6 |
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() { def generate_disk_signature(): import uuid - return str(uuid.uuid4())[:8] + while True: + signature = str(uuid.uuid4())[:8] + + if signature != '00000000': + return signature def validate_disk_signature(d): import re |