[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH] customize: use --noconfirm when installing Arch Linux packages



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
-- 
2.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]