On Mon, Feb 13, 2017 at 07:34:07AM +0600, ssmtpmailtesting ssmtpmailtesting 
wrote:
> How is hostname set? I'm not using lfs-bootscripts. After login, I see
> root@(none). Why is this? If I do sysctl kernel.hostname, it shows
> can't open /proc/sys... no such file or directory. But /etc/hostname
> has "myhostname".
> 
> I want to set hostname manually. I don't want to use lfs-bootscript.

Apart from what has already been said, you didn't tell us what you
have managed to do (e.g. with init=/bin/bash you end up with a
read-only root filesystem - I get the impression you have gone past
that).  So everybody is guessing.

But to be honest, most of us don't want to debug your bootscripts,
in the same way that most of us don't want to debug the details of
why somebody else's build-scripts fail.  Creating your own
bootscripts may be a worthwhile approach (with the downside that you
will then be on your own for everything you later need to start when
you get to whichever other packages you want to run ;) but you might
find it easiest to begin by working out what the individual LFS
bootscripts do, and use them as guidance for things you want to do.

From this initial question, I assume you have not mounted /proc.
Some people think not mounting /proc is a valid choice, but I think
it is a cause of pain.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.'     -- Small Gods
-- 
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