]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
wait-online: ignore one more error in callback function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Oct 2022 01:22:09 +0000 (10:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Nov 2022 02:35:27 +0000 (11:35 +0900)
src/network/wait-online/manager.c

index 3a2db101ed034cb30c3ef3847f3d3de28ef9ddbf..260ccce2b6dd7f9c13eb0cf5a3aaa85f6c799eaa 100644 (file)
@@ -212,11 +212,13 @@ static int manager_process_link(sd_netlink *rtnl, sd_netlink_message *mm, void *
 
         case RTM_NEWLINK:
                 if (!l) {
-                        log_debug("Found link %i", ifindex);
+                        log_debug("Found link %s(%i)", ifname, ifindex);
 
                         r = link_new(m, &l, ifindex, ifname);
-                        if (r < 0)
-                                return log_error_errno(r, "Failed to create link object: %m");
+                        if (r < 0) {
+                                log_warning_errno(r, "Failed to create link object for %s(%i), ignoring: %m", ifname, ifindex);
+                                return 0;
+                        }
                 }
 
                 r = link_update_rtnl(l, mm);