mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests/lvm: Remove use of deprecated sfdiskM API.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1183236 for the sorry tale.
This commit is contained in:
@@ -30,7 +30,9 @@ $g->add_drive_scratch (256 * 1024 * 1024);
|
||||
$g->launch ();
|
||||
|
||||
# Create an arrangement of PVs, VGs and LVs.
|
||||
$g->sfdiskM ("/dev/sda", [",127", "128,"]);
|
||||
$g->part_init ("/dev/sda", "mbr");
|
||||
$g->part_add ("/dev/sda", "p", 2048, 128*1024/2-1);
|
||||
$g->part_add ("/dev/sda", "p", 128*1024/2, -64);
|
||||
|
||||
$g->pvcreate ("/dev/sda1");
|
||||
$g->pvcreate ("/dev/sda2");
|
||||
|
||||
Reference in New Issue
Block a user