[Libguestfs] [PATCH 4/4] p2v: add -x option to nm-online

Cédric Bosdonnat cbosdonnat at suse.com
Wed Jun 22 09:45:35 UTC 2016


On distros not running NetworkManager, use the nm-online -x parameter
to exit quickly. The network connection will be checked just after
anyway when attempting to connect to the conversion server using ssh.
---
 p2v/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/p2v/utils.c b/p2v/utils.c
index c4f82cd..746093b 100644
--- a/p2v/utils.c
+++ b/p2v/utils.c
@@ -139,7 +139,7 @@ get_if_vendor (const char *if_name, int truncate)
 }
 
 /* XXX We could make this configurable. */
-#define NETWORK_ONLINE_COMMAND "nm-online -t 30"
+#define NETWORK_ONLINE_COMMAND "nm-online -t 30 -x"
 
 /**
  * Wait for the network to come online, but don't error out if that
-- 
2.6.6




More information about the Libguestfs mailing list