[Libguestfs] [PATCH] customize: use --noconfirm when installing Arch Linux packages
Richard W.M. Jones
rjones at redhat.com
Thu Jul 21 11:43:59 UTC 2016
On Thu, Jul 21, 2016 at 11:45:09AM +0200, Pino Toscano wrote:
> Otherwise the installation will fail right away, since pacman by default
> asks for confirmation of the operation.
> ---
> customize/customize_run.ml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/customize/customize_run.ml b/customize/customize_run.ml
> index 6f0d615..3e759a2 100644
> --- a/customize/customize_run.ml
> +++ b/customize/customize_run.ml
> @@ -117,7 +117,7 @@ exec >>%s 2>&1
> " quoted_args
> | "dnf" -> sprintf "dnf -y install %s" quoted_args
> | "pisi" -> sprintf "pisi it %s" quoted_args
> - | "pacman" -> sprintf "pacman -S %s" quoted_args
> + | "pacman" -> sprintf "pacman -S --noconfirm %s" quoted_args
> | "urpmi" -> sprintf "urpmi %s" quoted_args
> | "xbps" -> sprintf "xbps-install -Sy %s" quoted_args
> | "yum" -> sprintf "yum -y install %s" quoted_args
ACK.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
More information about the Libguestfs
mailing list