Too many people have been running 'vgchange -cy' by mistake
so add a confirmation prompt. Use --yes to bypass this.
Version 2.02.101 -
===================================
+ Require confirmation for vgchange -c when no VGs listed explicitly.
Also skip /var and /var/log by default in blkdeactivate when unmounting.
Add support for bind mounts in blkdeactivate.
Add blkdeactivate -v/--verbose for debug output from external tools used.
return ECMD_PROCESSED;
}
+ if (arg_count(cmd, clustered_ARG) && !argc && !arg_count(cmd, yes_ARG) &&
+ (yes_no_prompt("Change clustered property of all volumes groups? [y/n]: ") == 'n')) {
+ log_error("No volume groups changed.");
+ return ECMD_FAILED;
+ }
+
if (!update || !update_partial_unsafe)
cmd->handles_missing_pvs = 1;