提交 bcc0d408 编写于 作者: N Narasimhan V

Added -y to pvcreate in lv_utils

Added '-y' to pvcreate since pvcreate asks for confirmation
if previous filesystem signature exists.
Signed-off-by: NNarasimhan V <sim@linux.vnet.ibm.com>
上级 15dec5ac
......@@ -125,7 +125,7 @@ def vg_ramdisk(disk, vg_name, ramdisk_vg_size,
process.run("losetup %s %s" %
(loop_device, ramdisk_filename), sudo=True)
LOGGER.debug("Creating physical volume %s", loop_device)
process.run("pvcreate %s" % loop_device, sudo=True)
process.run("pvcreate -y %s" % loop_device, sudo=True)
LOGGER.debug("Creating volume group %s", vg_name)
process.run("vgcreate %s %s" %
(vg_name, loop_device), sudo=True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册