[libvirt] [PATCH 2/2] v1.1 add -v to dhclient parameter arguments
Gene Czarcinski
gczarcinski at ec.rr.com
Wed Sep 10 11:37:51 UTC 2014
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
More information about the libvir-list
mailing list