On 04/11/14 16:59, 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
I have just now setup gmail to use Thunderbird and have set that up to
post *below* replies.
cat /etc/lfs-release shows 7.6
findmnt gives the error message can't read /proc/mounts
I wonder if it would be useful to go back to the book 7.2 and reinstall
the bootscripts..
failure to use the / prefix before /etc is mere sloppiness on my part
when composing an email. Sorry.
AP
--
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