[libguestfs/f21] When testing if network is available, dump ip addr/route to help with debugging.

Richard W.M. Jones rjones at fedoraproject.org
Fri Oct 3 16:04:45 UTC 2014


commit 2b7f0f9bec3fe567673f727429963ef9e70c90dc
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Oct 2 20:53:11 2014 +0100

    When testing if network is available, dump ip addr/route to help with debugging.
    
    (cherry picked from commit 95151f84a2e7d0c11a2ec9907aa318097b0f6ec5)

 libguestfs.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libguestfs.spec b/libguestfs.spec
index f4ad4ee..8e82a1e 100644
--- a/libguestfs.spec
+++ b/libguestfs.spec
@@ -741,6 +741,8 @@ sed 's/@VERSION@/%{version}/g' < %{SOURCE4} > README
 
 %build
 # Test if network is available.
+ip addr list ||:
+ip route list ||:
 if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
   extra=
 else


More information about the scm-commits mailing list