Re: [PATCH] Write /etc/resolv.conf and /etc/hosts in stage1 on s390.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hans de Goede wrote:
> 
> 
> Joel Granados Moreno wrote:
>> From: David Cantrell <dcantrell@xxxxxxxxxx>
>>
>> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list


-- 
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux