[PATCH 02/11] Debug failure to find device during requery

Daniel M. Weeks weeksd2 at rpi.edu
Fri Apr 17 03:54:01 AEST 2020


This should never happen. If it does, it likely indicates a bug where
network device UUIDs and hardware addresses are not treated/parsed the
same way.

Signed-off-by: Daniel M. Weeks <weeksd2 at rpi.edu>
---
 discover/network.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/discover/network.c b/discover/network.c
index 6457f9e..041367f 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -508,8 +508,10 @@ void network_requery_device(struct network *network,
 	struct interface *interface;
 
 	interface = find_interface_by_uuid(network, dev->uuid);
-	if (!interface)
+	if (!interface) {
+		pb_debug("Unable to find %s to requery\n", dev->uuid);
 		return;
+	}
 
 	if (interface->udhcpc_process) {
 		interface->udhcpc_process->exit_cb = NULL;
-- 
Daniel M. Weeks


-- 
Daniel M. Weeks
Lead HPC Developer
Center for Computational Innovations
Rensselaer Polytechnic Institute
Troy, NY 12180
518-276-4458


More information about the Petitboot mailing list