Pino Toscano
2015-Jan-27 17:37 UTC
[Libguestfs] [PATCH] customize: handle Arg.Set parameters in commands file
When reading commands from a file, handle also Arg.Set parameters, so they can be enabled as well. --- generator/customize.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/customize.ml b/generator/customize.ml index 4844681..1c9092b 100644 --- a/generator/customize.ml +++ b/generator/customize.ml @@ -696,6 +696,7 @@ pr " ] in (match spec with | Arg.Unit fn -> fn () | Arg.String fn -> fn arg + | Arg.Set varref -> varref := true | _ -> error \"INTERNAL error: spec not handled for %%s\" cmd ) with Not_found -> -- 1.9.3
Richard W.M. Jones
2015-Jan-27 22:15 UTC
Re: [Libguestfs] [PATCH] customize: handle Arg.Set parameters in commands file
On Tue, Jan 27, 2015 at 06:37:39PM +0100, Pino Toscano wrote:> When reading commands from a file, handle also Arg.Set parameters, so > they can be enabled as well. > --- > generator/customize.ml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/generator/customize.ml b/generator/customize.ml > index 4844681..1c9092b 100644 > --- a/generator/customize.ml > +++ b/generator/customize.ml > @@ -696,6 +696,7 @@ pr " ] in > (match spec with > | Arg.Unit fn -> fn () > | Arg.String fn -> fn arg > + | Arg.Set varref -> varref := true > | _ -> error \"INTERNAL error: spec not handled for %%s\" cmd > ) > with Not_found -> > -- > 1.9.3ACK. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Maybe Matching Threads
- [PATCH] customize: add --commands-from-file
- [PATCH 1/2] builder, customize: disable SELinux
- [PATCH] customize: Add --ssh-inject option for injecting SSH keys.
- Re: [PATCH 3/7] customize: add support for pvvxsvc
- [PATCH 2/2] customize: fix attributes of /etc/shadow (RHBZ#1146275)