[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 03/49] lvcreate argments: pass --yes -Z y -W y
The documentation seesm to think this is the default but empirically it isn't. In our environment --yes is fine. I have reported this to Debian as #953183. Also vaguely related (and discovered by me at the same time) is #953185. This came up while trying to get things work on buster. I don't know what has changed. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- Osstest/TestSupport.pm | 2 +- ts-xen-build-prep | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 1e7da676..43766ee3 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -935,7 +935,7 @@ sub lv_create ($$$$) { my ($ho, $vg, $lv, $mb) = @_; my $lvdev = "/dev/$vg/$lv"; target_cmd_root($ho, "lvremove -f $lvdev ||:"); - target_cmd_root($ho, "lvcreate -L ${mb}M -n $lv $vg"); + target_cmd_root($ho, "lvcreate --yes -Z y -W y -L ${mb}M -n $lv $vg"); target_cmd_root($ho, "dd if=/dev/zero of=$lvdev count=10"); return $lvdev; } diff --git a/ts-xen-build-prep b/ts-xen-build-prep index 8e73f763..dabb9921 100755 --- a/ts-xen-build-prep +++ b/ts-xen-build-prep @@ -61,7 +61,7 @@ sub determine_vg_lv () { sub lvextend_stage1 () { target_cmd_root($ho, <<END); set -ex; if ! test -f /root/swap_osstest_enabled; then - lvcreate -L 10G -n swap_osstest_build $vg ||: + lvcreate --yes -Z y -W y -L 10G -n swap_osstest_build $vg ||: mkswap /dev/$vg/swap_osstest_build ||: swapon /dev/$vg/swap_osstest_build touch /root/swap_osstest_enabled @@ -84,7 +84,7 @@ sub vginfo () { sub lvcreate () { target_cmd_output_root($ho, - "lvdisplay $lv || lvcreate -l 1 -n $lvleaf $vg"); + "lvdisplay $lv || lvcreate --yes -Z y -W y -l 1 -n $lvleaf $vg"); } sub lvextend1 ($$$) { -- 2.20.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |