Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disappeared hostname after openrc imgration.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
haneulso
Apprentice
Apprentice


Joined: 31 Aug 2004
Posts: 153

PostPosted: Thu Nov 15, 2012 10:44 pm    Post subject: Disappeared hostname after openrc imgration. Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 37367
Location: 56N 3W

PostPosted: Thu Nov 15, 2012 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7280
Location: Goose Creek SC

PostPosted: Thu Nov 15, 2012 11:29 pm    Post subject: Reply with quote

Code:
nano /etc/issue
should look like
Quote:

This is \n. (\s \m \r) \t

_________________
Defund the FCC.
Back to top
View user's profile Send private message
haneulso
Apprentice
Apprentice


Joined: 31 Aug 2004
Posts: 153

PostPosted: Thu Nov 15, 2012 11:39 pm    Post subject: Thanks I solved. Reply with quote

Thanks All. I solved.
Back to top
View user's profile Send private message
icepeak
n00b
n00b


Joined: 04 Apr 2016
Posts: 2

PostPosted: Wed Feb 22, 2017 11:46 am    Post subject: Re: Thanks I solved. Reply with quote

haneulso wrote:
Thanks All. I solved.

I met this problem too. How did solve it? Thanks.
_________________
A gentoo beginner.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7280
Location: Goose Creek SC

PostPosted: Wed Feb 22, 2017 1:10 pm    Post subject: Reply with quote

If you are using openrc:
Code:
rc-update show
should produce
Quote:
hostname | boot
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

Code:
nano /etc/issue
edit to read
Quote:
This is \n.\O (\s \m \r) \t
Content updated since original answer. Then
Code:
openrc


references man openrc man issue.
If you are using systemd start a new thread of your own.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum