Alexsander de Souza has proposed merging 
~alexsander-souza/curtin:deploy_raw_lvm_images into curtin:master.

Commit message:
add support to LVM-based raw images
    
when a raw image has LVM partitions, we need to call pvscan, vgscan and 
vgchange so curtin can find and mount the rootfs successfully.


Requested reviews:
  curtin developers (curtin-dev)

For more details, see:
https://code.launchpad.net/~alexsander-souza/curtin/+git/curtin/+merge/408913

Call pvscan, vgscan and vgchange after dd'ing a raw image, so curtin can find a 
rootfs in a virtual volume.
-- 
Your team curtin developers is requested to review the proposed merge of 
~alexsander-souza/curtin:deploy_raw_lvm_images into curtin:master.
diff --git a/curtin/commands/block_meta.py b/curtin/commands/block_meta.py
index aae85c6..ff655cf 100644
--- a/curtin/commands/block_meta.py
+++ b/curtin/commands/block_meta.py
@@ -146,6 +146,8 @@ def write_image_to_disk(source, dev):
                     '--', source['uri'], devnode])
     util.subp(['partprobe', devnode])
     udevadm_settle()
+    lvm.lvm_scan()
+    lvm.activate_volgroups()
     # Images from MAAS have well-known/required paths present
     # on the rootfs partition.  Use these values to select the
     # root (target) partition to complete installation.
-- 
Mailing list: https://launchpad.net/~curtin-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~curtin-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to