Re: NM 0.9.8 doesn't realise that DHCP worked
- From: Pavel Simerda <psimerda redhat com>
- To: Dan Williams <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: NM 0.9.8 doesn't realise that DHCP worked
- Date: Wed, 27 Feb 2013 06:42:39 -0500 (EST)
----- Original Message -----
From: "Dan Williams" <dcbw redhat com>
To: "Bastien Nocera" <hadess hadess net>
I'm pretty sure that your commit
1a7e7c9031526b0c8973965c826ad7d1b7cc22f9 is the one causing the
regression:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=1a7e7c9031526b0c8973965c826ad7d1b7cc22f9
Correct.
It's basically loading anything that lies around, even if it's not
relevant for the distribution used.
Yes, we want to keep the NM behavior simple on that matter, I suppose.
Oh fun. I suppose we should strip out any script thats specified in
that file when copying its configuration to the one that we actually
send to dhclient.
Agreed.
Would something like this fix it?
diff --git a/src/dhcp-manager/nm-dhcp-dhclient-utils.c
b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
index 8dc7902..d311d50 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient-utils.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
@@ -168,6 +168,10 @@ nm_dhcp_dhclient_create_config (const char
*interface,
continue;
}
+ /* Ignore 'script' since we pass our own */
+ if (g_str_has_prefix (p, "script "))
+ continue;
+
/* Check for "also require" */
if (!strncmp (p, ALSOREQ_TAG, strlen
(ALSOREQ_TAG))) {
in_alsoreq = TRUE;
Dan
+1
Thanks to both of you.
Pavel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]