[Libguestfs] [PATCH] sysprep: mention globbing in help for --delete
Richard W.M. Jones
rjones at redhat.com
Mon Dec 9 18:49:07 UTC 2013
On Mon, Dec 09, 2013 at 07:40:44PM +0100, Pino Toscano wrote:
> Followup of ed4bcb119cb908e98ecc1107dcd8b740ee2f484f.
> ---
> sysprep/sysprep_operation_delete.ml | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/sysprep/sysprep_operation_delete.ml b/sysprep/sysprep_operation_delete.ml
> index 59d5485..3db3f57 100644
> --- a/sysprep/sysprep_operation_delete.ml
> +++ b/sysprep/sysprep_operation_delete.ml
> @@ -40,7 +40,12 @@ let op = {
> pod_description = Some (s_"\
> Delete specified files or directories.
>
> -Use the I<--delete> option to specify a path to remove.");
> +Use the I<--delete> option to specify a path to remove.
> +
> +You can use shell glob characters in the specified path; note that such
> +metacharacters might require proper escape. For example:
> +
> + virt-sysprep --delete '/var/log/*.log'.");
> extra_args = [
> { extra_argspec = ("--delete", Arg.String add_paths, s_"path" ^ " " ^ s_"File or directory to be removed on guest");
> extra_pod_argval = Some "PATHNAME";
> --
> 1.8.3.1
ACK.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
More information about the Libguestfs
mailing list