[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] Write /etc/resolv.conf and /etc/hosts in stage1 on s390.
- From: David Cantrell <dcantrell redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH] Write /etc/resolv.conf and /etc/hosts in stage1 on s390.
- Date: Mon, 15 Dec 2008 20:37:29 -1000
Hans de Goede wrote:
>
>
> Joel Granados Moreno wrote:
>> From: David Cantrell <dcantrell redhat com>
>>
>> Write out nameserver lines in /etc/resolv.conf correctly and
>> write out /etc/hosts containing localhost lines as well as a
>> line for the host itself. This allows ssh X forwarding to work
>> and telnetd to work.(459730)
>> ---
>> loader2/linuxrc.s390 | 9 ++++++++-
>> 1 files changed, 8 insertions(+), 1 deletions(-)
>
> Hmm, this seems to clash with the patch from dcantrell I've just
> reviewed, please coordinate.
The patch you reviewed for me was for rhel4-branch only. I should have
specified that.
>
> Regards,
>
> Hans
>
>>
>> diff --git a/loader2/linuxrc.s390 b/loader2/linuxrc.s390
>> index 0400ede..51611a9 100644
>> --- a/loader2/linuxrc.s390
>> +++ b/loader2/linuxrc.s390
>> @@ -487,7 +487,14 @@ if [ -n "$SEARCHDNS" ]; then
>> fi
>> if [ -n "$DNS" ]; then
>> DNS=`echo $DNS |sed -e 's/:/ /g'`
>> - for i in "$DNS"; do echo "nameserver $i"; done >> /etc/resolv.conf
>> + for i in $DNS; do echo "nameserver $i"; done >> /etc/resolv.conf
>> +fi
>> +
>> +# make sure we have an /etc/hosts file (required for telnetd)
>> +echo "127.0.0.1 localhost.localdomain localhost" > /etc/hosts
>> +echo "::1 localhost6.localdomain6 localhost6" >> /etc/hosts
>> +if [ ! -z "$HOSTNAME" -a ! -z "$IPADDR" ]; then
>> + echo "$IPADDR $HOSTNAME `echo $HOSTNAME | cut -d '.' -f 1`" >>
>> /etc/hosts
>> fi
>>
>> if [ -z "$DASD" ]; then
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]