mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
disk_util: use the dummy disk UUID
This dummy UUID (00000000-0000-0000-0000-000000000001) is used to signify to Ignition that the disk is uninitialized.
This commit is contained in:
parent
cf4b282482
commit
7232e74bcc
@ -269,7 +269,8 @@ def WritePartitionTable(options, config=None, partitions=None):
|
|||||||
config, partitions = LoadPartitionConfig(options)
|
config, partitions = LoadPartitionConfig(options)
|
||||||
|
|
||||||
if options.create:
|
if options.create:
|
||||||
Cgpt('create', '-c', '-s', config['metadata']['blocks'], options.disk_image)
|
Cgpt('create', '-c', '-s', config['metadata']['blocks'],
|
||||||
|
'-g', '00000000-0000-0000-0000-000000000001', options.disk_image)
|
||||||
else:
|
else:
|
||||||
# If we are not creating a fresh image all partitions must be compatible.
|
# If we are not creating a fresh image all partitions must be compatible.
|
||||||
GetPartitionTableFromImage(options, config, partitions)
|
GetPartitionTableFromImage(options, config, partitions)
|
||||||
|
Loading…
Reference in New Issue
Block a user