Re: [gentoo-catalyst] root console on boot

2009-02-10 Thread Mike Frysinger
On Tuesday 10 February 2009 14:54:18 lurker wrote:
 When I generate liveCDs using catalyst they always end up with a root
 console being open on tty1 after boot. How can I disable this and have
 it behave like a normal Gentoo install?

 A somewhat related question: why is it only possible to login on tty1?
 tty2 and up just give blank screens with no login prompts.

look at the inittab
-mike


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-catalyst] root console on boot

2009-02-10 Thread lurker
On 10/02/09 21:17, Mike Frysinger wrote:
 On Tuesday 10 February 2009 14:54:18 lurker wrote:
 When I generate liveCDs using catalyst they always end up with a root
 console being open on tty1 after boot. How can I disable this and have
 it behave like a normal Gentoo install?

 A somewhat related question: why is it only possible to login on tty1?
 tty2 and up just give blank screens with no login prompts.
 
 look at the inittab

I have checked inittab and it looks ok. However, now I noticed that the
inittab that's in the iso differs from the one when the iso is running.
On the running system a line has been added for the root console, and
tty1-tty2 logins are disabled, just as expected. It seems this is done
sometime during boot, but I'm not sure when. I've checked the initrd,
but nothing there seems to be responsible. Any clues?




Re: [gentoo-catalyst] root console on boot

2009-02-10 Thread lurker
On 10/02/09 23:27, Andrew Gaffney wrote:
 lurker wrote:
 On 10/02/09 22:28, Mike Frysinger wrote:
 try grepping the init.d scripts.  or look at the source scripts 
 from catalyst itself (iirc, there's a livecd support dir or 
 some such).
 
 I've recursively grepped every file in /usr/lib/catalyst, 
 /usr/share/genkernel, /etc and the initrd, and I found nothing. 
 Have I missed anything (I must have!)?
 
 The files you're looking for are part of livecd-tools. There's a 
 function called livecd_fix_inittab() in livecd-functions.sh that 
 rewrites the CD's inittab to call the bashlogin script instead of a 
 login process.

Thanks a lot!

 However, I'm not sure what actually calls the livecd_fix_inittab()
 function in the first place.

FYI, after some grepping I found from where it is called: /sbin/rc,
around row 500 (this is with baselayout-1.12.11.1).

I could be off here, but wouldn't it be better if catalyst made these
changes to /etc/inittab in livecd-stage2 instead?