← Back to team overview

curtin-dev team mailing list archive

Re: [Merge] ~dbungert/curtin:partition-arbitrary-types into curtin:master

 


Diff comments:

> diff --git a/curtin/commands/block_meta_v2.py b/curtin/commands/block_meta_v2.py
> index a095c8f..b4838f9 100644
> --- a/curtin/commands/block_meta_v2.py
> +++ b/curtin/commands/block_meta_v2.py
> @@ -364,6 +370,10 @@ def disk_handler_v2(info, storage_config, handlers):
>              preserved_offsets.add(entry.start)
>          wipes[entry.start] = _wipe_for_action(action)
>  
> +    # preserve disk label ids
> +    if info.get('preserve') and sfdisk_info is not None:

Hm, does it make sense to support this by having label_id on a disk action and having storage_config read it out?

> +        table.label_id = sfdisk_info['id']
> +
>      for kname, nr, offset, size in block.sysfs_partition_data(disk):
>          offset_sectors = table.bytes2sectors(offset)
>          resize = resizes.get(offset_sectors)


-- 
https://code.launchpad.net/~dbungert/curtin/+git/curtin/+merge/420764
Your team curtin developers is subscribed to branch curtin:master.



References