1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

vgextend: allow --yes to skip prompt

This commit is contained in:
Zdenek Kabelac 2014-05-23 23:33:17 +02:00
parent 1a84032322
commit 3f8048f28c
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.107 -
==================================
Allow --yes to skip prompt in vgextend (worked only with -f).
Don't use name mangling for LVM - it never uses dm names with wrong char set.
Remove default.profile and add {command,metadata}_profile_template.profile.
Use proper umask for systemd units generated by lvm2-activation-generator.

View File

@ -102,9 +102,9 @@ int vgextend(struct cmd_context *cmd, int argc, char **argv)
if (arg_count(cmd, metadataignore_ARG) &&
(vg_mda_copies(vg) != VGMETADATACOPIES_UNMANAGED) &&
(pp.force == PROMPT) &&
(pp.force == PROMPT) && !pp.yes &&
yes_no_prompt("Override preferred number of copies "
"of VG %s metadata? [y/n]: ",
"of VG %s metadata? [y/n]: ",
vg_name) == 'n') {
log_error("Volume group %s not changed", vg_name);
goto bad;