Gentoo Archives: gentoo-catalyst

From: Andrew Gaffney <agaffney@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] root console on boot
Date: Wed, 11 Feb 2009 02:33:44
Message-Id: 49923906.2010201@gentoo.org
In Reply to: Re: [gentoo-catalyst] root console on boot by lurker
1 lurker wrote:
2 > On 10/02/09 23:27, Andrew Gaffney wrote:
3 >> lurker wrote:
4 >>> On 10/02/09 22:28, Mike Frysinger wrote:
5 >>>> try grepping the init.d scripts. or look at the source scripts
6 >>>> from catalyst itself (iirc, there's a "livecd support" dir or
7 >>>> some such).
8 >>> I've recursively grepped every file in /usr/lib/catalyst,
9 >>> /usr/share/genkernel, /etc and the initrd, and I found nothing.
10 >>> Have I missed anything (I must have!)?
11 >> The files you're looking for are part of livecd-tools. There's a
12 >> function called livecd_fix_inittab() in livecd-functions.sh that
13 >> rewrites the CD's inittab to call the bashlogin script instead of a
14 >> login process.
15 >
16 > Thanks a lot!
17 >
18 >> However, I'm not sure what actually calls the livecd_fix_inittab()
19 >> function in the first place.
20 >
21 > FYI, after some grepping I found from where it is called: /sbin/rc,
22 > around row 500 (this is with baselayout-1.12.11.1).
23 >
24 > I could be off here, but wouldn't it be better if catalyst made these
25 > changes to /etc/inittab in livecd-stage2 instead?
26
27 If you look at the livecd_fix_inittab() function, it makes decisions on what to
28 write to /etc/inittab based on the /dev nodes that are present.
29
30 --
31 Andrew Gaffney http://dev.gentoo.org/~agaffney/
32 Gentoo Linux Developer Catalyst/Genkernel + Release Engineering Lead