View previous topic :: View next topic |
Author |
Message |
haneulso Apprentice
Joined: 31 Aug 2004 Posts: 173
|
Posted: Thu Nov 15, 2012 10:44 pm Post subject: Disappeared hostname after openrc imgration. |
|
|
I upgrade openrc from 0.10.5 to 0.11.5.(http://www.gentoo.org/doc/en/openrc-migration.xml)
After upgrading hostname of my machine is disappeared.
Code: |
myhome@(none) ~ $ hostname
(none)
myhome@(none) ~ $ su -
Password:
(none) ~ # hostname
(none)
(none) ~ #
|
/etc/conf.d/hostname is
Code: |
# Set to the hostname of this machine
hostname="MyBox"
|
I has used openrc-0.10.5.
But different things are upgrading openrc to 0.11.5 and adding critical services to the boot runlevel or sysinit runlevel according to http://www.gentoo.org/doc/en/openrc-migration.xml
Code: |
rc-update add root boot
rc-update add procfs boot
rc-update add mtab boot
rc-update add fsck boot
rc-update add swap boot
rc-update add udev sysinit
|
What's problem? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Thu Nov 15, 2012 11:06 pm Post subject: |
|
|
haneulso,
Check that your hostname service is in the right runlevel _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Nov 15, 2012 11:29 pm Post subject: |
|
|
should look like Quote: |
This is \n. (\s \m \r) \t |
_________________ Defund the FCC. |
|
Back to top |
|
|
haneulso Apprentice
Joined: 31 Aug 2004 Posts: 173
|
Posted: Thu Nov 15, 2012 11:39 pm Post subject: Thanks I solved. |
|
|
Thanks All. I solved. |
|
Back to top |
|
|
icepeak n00b
Joined: 04 Apr 2016 Posts: 2
|
Posted: Wed Feb 22, 2017 11:46 am Post subject: Re: Thanks I solved. |
|
|
haneulso wrote: | Thanks All. I solved. |
I met this problem too. How did solve it? Thanks. _________________ A gentoo beginner. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Feb 22, 2017 1:10 pm Post subject: |
|
|
If you are using openrc:
should produce if hostname is in some other runlevel delete it and add it to boot runlevel Code: | rc-update del hostname 'fill in the name of the incorrect runlevel here'
rc-update add hostname boot |
edit to read Quote: | This is \n.\O (\s \m \r) \t | Content updated since original answer. Then
references man openrc man issue.
If you are using systemd start a new thread of your own. _________________ Defund the FCC. |
|
Back to top |
|
|
|