SHA256
1
0
forked from pool/libguestfs
libguestfs/5f663c20-zypper-non-interactive.patch

24 lines
905 B
Diff
Raw Normal View History

From 5f663c2082446f2b9722c3cb0fcac6c5778978e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cbosdonnat@suse.com>
Date: Tue, 3 Feb 2015 14:38:02 +0000
Subject: [PATCH] customize: Invoke zypper correctly.
---
customize/customize_run.ml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: libguestfs-1.26.9/customize/customize_run.ml
===================================================================
--- libguestfs-1.26.9.orig/customize/customize_run.ml
+++ libguestfs-1.26.9/customize/customize_run.ml
@@ -105,8 +105,7 @@ exec >>%s 2>&1
| "yum" ->
sprintf "yum -y install %s" quoted_args
| "zypper" ->
- (* XXX Should we use -n option? *)
- sprintf "zypper in %s" quoted_args
+ sprintf "zypper -n in %s" quoted_args
| "unknown" ->
eprintf (f_"%s: --install is not supported for this guest operating system\n")
prog;