[PATCH rhel6-branch] Send host-name to dhcp server in installer for dhcp + hostname (#917815)
Vratislav Podzimek
vpodzime at redhat.com
Mon Jun 24 13:55:52 UTC 2013
On Mon, 2013-06-24 at 15:35 +0200, Radek Vykydal wrote:
> Resolves: rhbz#917815
> ---
> loader/net.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/loader/net.c b/loader/net.c
> index 93a9c6f..7c6bf01 100644
> --- a/loader/net.c
> +++ b/loader/net.c
> @@ -1497,6 +1497,9 @@ int writeEnabledNetInfo(iface_t *iface) {
>
> if (iface->hostname) {
> fprintf(fp, "HOSTNAME=%s\n", iface->hostname);
> + if (iface->ipv4method == IPV4_DHCP_METHOD) {
> + fprintf(fp, "DHCP_HOSTNAME=%s\n", iface->hostname);
> + }
> }
>
> if (iface->domain) {
You could remove the curly braces if you wanted. ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list