Mageia Bugzilla – Attachment 1696 Details for
Bug 82
Remember if install DHCP received hostname from server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Blino, any reason not to apply this patch?
82-remember-dhcp-hostname.diff (text/plain), 533 bytes, created by
Thierry Vignaud
on 2012-03-07 17:55:16 CET
(
hide
)
Description:
Blino, any reason not to apply this patch?
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-03-07 17:55:16 CET
Size:
533 bytes
patch
obsolete
>(save_netinfo) remember hostname even if using DHCP > >diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c >index d82ca28..bd020a0 100644 >--- a/mdk-stage1/network.c >+++ b/mdk-stage1/network.c >@@ -291,7 +291,7 @@ static int save_netinfo(struct interface_info * intf) > fprintf(f, "NETWORKING=yes\n"); > fprintf(f, "FORWARD_IPV4=false\n"); > >- if (hostname && !intf->boot_proto == BOOTPROTO_DHCP) >+ if (hostname) > fprintf(f, "HOSTNAME=%s\n", hostname); > if (gateway.s_addr != 0) > fprintf(f, "GATEWAY=%s\n", inet_ntoa(gateway));
(save_netinfo) remember hostname even if using DHCP diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index d82ca28..bd020a0 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -291,7 +291,7 @@ static int save_netinfo(struct interface_info * intf) fprintf(f, "NETWORKING=yes\n"); fprintf(f, "FORWARD_IPV4=false\n"); - if (hostname && !intf->boot_proto == BOOTPROTO_DHCP) + if (hostname) fprintf(f, "HOSTNAME=%s\n", hostname); if (gateway.s_addr != 0) fprintf(f, "GATEWAY=%s\n", inet_ntoa(gateway));
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 82
: 1696 |
5357
|
5358
|
5359
|
5360