Unix Technical Forum

emerging klibc gets wrong kernel sources?

This is a discussion on emerging klibc gets wrong kernel sources? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> pk wrote: > J.O. Aho wrote: > >> It shouldn't be too difficult to do that >> >> ln ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #31 (permalink)  
Old 04-07-2008, 09:37 AM
J.O. Aho
 
Posts: n/a
Default Re: Virtual Machine

pk wrote:
> J.O. Aho wrote:
>
>> It shouldn't be too difficult to do that
>>
>> ln -sfn /etc/runlevels /etc/rc.d
>> mkdir -p /etc/rc.d
>> ln -sfn /etc/runlevels/1 /etc/rc.d/rc1.d
>> ln -sfn /etc/runlevels/1 /etc/rc.d/rc2.d
>> ln -sfn /etc/runlevels/1 /etc/rc.d/rc3.d
>> ln -sfn /etc/runlevels/1 /etc/rc.d/rc4.d
>> ln -sfn /etc/runlevels/1 /etc/rc.d/rc5.d
>> mkdir -p /etc/runlevels/1
>> mkdir -p /etc/runlevels/2
>> mkdir -p /etc/runlevels/3
>> mkdir -p /etc/runlevels/4
>> mkdir -p /etc/runlevels/5
>>
>>
>> replace in /etc/inittab:
>> l1:S1:wait:/sbin/rc single
>> l2:2:wait:/sbin/rc default
>> l3:3:wait:/sbin/rc default
>> l4:4:wait:/sbin/rc default
>> l5:5:wait:/sbin/rc default
>>
>> to:
>> l1:S1:wait:/sbin/rc 1
>> l2:2:wait:/sbin/rc 2
>> l3:3:wait:/sbin/rc 3
>> l4:4:wait:/sbin/rc 4
>> l5:5:wait:/sbin/rc 5
>>
>> Just don't forget to update the runlevels to contain the right service
>> symlinks.

>
> Wouldn't all of this be blown away at the first baselayout update? You'll
> have to be careful to not let portage overwrite the files you modified.
>


No, inittab is protected by default, you will get opted if you want to update
it or not, and you can always protect it more permanently in make.conf.
Upgrading baselayout won't affect anything else.

--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 04-07-2008, 09:37 AM
pk
 
Posts: n/a
Default Re: Virtual Machine

J.O. Aho wrote:

> No, inittab is protected by default, you will get opted if you want to
> update it or not, and you can always protect it more permanently in
> make.conf.


Protecting a file only means it's not automatically overwritten, but as long
as portage sees the ._cfg* files it will keep asking (through etc-update or
similar tools) whether you want to overwrite it. Not saying that you can't
do that, of course, but you still have to be careful, especially if
etc-update tells you that 144 files need to be updated, /etc/inittab is
among those, and you don't notice that (I'm speaking out of direct
experience, btw; I once unthinkingly replaced my customized inittab with
the default one. Luckily I had a backup :-)).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:26 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com