Re: [lfs-support] How can I set hostname?

2017-02-13 Thread Bruce Dubbs
ssmtpmailtesting ssmtpmailtesting wrote: I added: echo myhostname > /proc/sys/kernel/hostname Still same prompt = root@(none) But if I install lfs-bootscript, then it changes to root@myhostname. I also added /etc/fstab and /etc/inittab Did I miss anything? Yes. For systemd, Section 7.2.3. Af

Re: [lfs-support] How can I set hostname?

2017-02-13 Thread ssmtpmailtesting ssmtpmailtesting
I added: echo myhostname > /proc/sys/kernel/hostname Still same prompt = root@(none) But if I install lfs-bootscript, then it changes to root@myhostname. I also added /etc/fstab and /etc/inittab Did I miss anything? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfr

Re: [lfs-support] How can I set hostname?

2017-02-13 Thread Michael Shell
On Mon, 13 Feb 2017 07:34:07 +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 "m