[libvirt] [PATCH 2/2] add -v to dhclient parameter arguments
Gene Czarcinski
gczarcinski at ec.rr.com
Tue Sep 9 18:50:43 UTC 2014
This improves the ablityh to diagnose problems.
---
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
More information about the libvir-list
mailing list