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

[libvirt] [PATCH 2/2] v1.1 add -v to dhclient parameter arguments



This patch improves the ability to understand what is happening
with dchlient and is obviously optional.
---
 libvirt-sandbox/libvirt-sandbox-init-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-sandbox/libvirt-sandbox-init-common.c b/libvirt-sandbox/libvirt-sandbox-init-common.c
index 49baa5c..056cbc2 100644
--- a/libvirt-sandbox/libvirt-sandbox-init-common.c
+++ b/libvirt-sandbox/libvirt-sandbox-init-common.c
@@ -111,7 +111,7 @@ start_shell(void)
 
 static gboolean start_dhcp(const gchar *devname, GError **error)
 {
-    const gchar *argv[] = { "/sbin/dhclient", "--no-pid", devname, NULL };
+    const gchar *argv[] = { "/sbin/dhclient", "-v", "--no-pid", devname, NULL };
 
     if (!g_spawn_sync(NULL, (gchar**)argv, NULL, 0,
                       NULL, NULL, NULL, NULL, NULL, error))
-- 
1.9.3


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