]> git.ozlabs.org Git - petitboot/blobdiff - discover/network.c
utils/pb-udhcpc: Fix incorrect reference to $interface
[petitboot] / discover / network.c
index 7ddecc03b658a59e88e00bfcf9156114ca7f13c6..cf340dad86b6540c712c9110c30b2b38babe8650 100644 (file)
@@ -220,6 +220,8 @@ static void configure_interface_dhcp(struct interface *interface)
                "-R",
                "-n",
                "-O", "pxeconffile",
+               "-O", "pxepathprefix",
+               "-x", "0x5d:000a",
                "-p", pidfile,
                "-i", interface->name,
                NULL,
@@ -582,8 +584,13 @@ int network_shutdown(struct network *network)
        if (network->waiter)
                waiter_remove(network->waiter);
 
-       list_for_each_entry(&network->interfaces, interface, list)
+       list_for_each_entry(&network->interfaces, interface, list) {
+               if (interface->state == IFSTATE_IGNORED)
+                       continue;
+               if (!strcmp(interface->name, "lo"))
+                       continue;
                interface_down(interface);
+       }
 
        close(network->netlink_sd);
        talloc_free(network);