curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #02207
[Merge] ~mwhudson/curtin:v2-make_dname into curtin:master
Michael Hudson-Doyle has proposed merging ~mwhudson/curtin:v2-make_dname into curtin:master.
Commit message:
block_meta_v2: call make_dname when required
Requested reviews:
curtin developers (curtin-dev)
For more details, see:
https://code.launchpad.net/~mwhudson/curtin/+git/curtin/+merge/416633
Yet another thing found by v2 vmtests.
--
Your team curtin developers is requested to review the proposed merge of ~mwhudson/curtin:v2-make_dname into curtin:master.
diff --git a/curtin/commands/block_meta_v2.py b/curtin/commands/block_meta_v2.py
index 26f5e6a..051649b 100644
--- a/curtin/commands/block_meta_v2.py
+++ b/curtin/commands/block_meta_v2.py
@@ -8,6 +8,7 @@ from curtin import (block, util)
from curtin.commands.block_meta import (
disk_handler as disk_handler_v1,
get_path_to_storage_volume,
+ make_dname,
partition_handler as partition_handler_v1,
partition_verify_sfdisk,
)
@@ -280,6 +281,12 @@ def disk_handler_v2(info, storage_config, handlers):
if mode is not None:
block.wipe_volume(block.kname_to_path(kname), mode)
+ # Make the names if needed
+ if 'name' in info:
+ for action in part_actions:
+ if action.get('flag') != 'extended':
+ make_dname(action['id'], storage_config)
+
def partition_handler_v2(info, storage_config, handlers):
pass
Follow ups