On 11/04/2014 05:59 PM, Bruce Dubbs wrote:
> Armin K. wrote:
>> On 11/04/2014 05:41 PM, Bruce Dubbs wrote:
>>> Anthony Price wrote:
>>>> Thanks. Tried that without results
>>>>
>>>> Hostname is already set in etc/hostname
>>>
>>> Something is not right with your boot scripts.   The third boot script
>>> run is S08localnet and that runs hostname ${HOSTNAME}.  ${HOSTNAME} is
>>> set by:
>>>
>>> [ -r /etc/hostname ] && HOSTNAME=`cat /etc/hostname`
>>>
>>> You keep referring to things like etc/hostname when it should be
>>> /etc/hostname.  Are those just typos?
>>>
>>>
>>
>> This doesn't look failsafe. I must admit that I didn't look at the
>> script, just the part you wrote - but it looks like it would set
>> hostname to an empty string if /etc/hostname isn't present, no?
>>
>> Why not set it to localhost if /etc/hostname isn't there? Ie:
>>
>> HOSTNAME=localhost
>> [ -r /etc/hostname ] && HOSTNAME=`cat /etc/hostname`
>>
> 
> That's a possibility, but I've found that it's common for for users to do
> 
>  echo "<lfs>" > /etc/hostname
> 
> without changing <lfs> as well as skipping the entire line.  I prefer to
> leave it like it is to highlight the error.
> 
>   -- Bruce
> 

That's fine, but I'm talking about when /etc/hostname does not exist at
all rather than having <lfs> in it.

-- 
Note: My last name is not Krejzi.

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to