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:
Richard W.M. Jones
2015-01-19 15:00:57 +00:00
parent eb85ac6a0d
commit 19c09bcdee

View File

@@ -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");