1 |
On Wed, 2007-08-01 at 11:55 -1000, Joshua Hoblitt wrote: |
2 |
> On Wed, Aug 01, 2007 at 09:58:36AM -0700, Chris Gianelloni wrote: |
3 |
> > On Wed, 2007-08-01 at 10:00 -0400, Scott Biddlestone wrote: |
4 |
> > > If you installed livecd-tools, the inittab is overwritten by |
5 |
> > > /sbin/livecd-functions.sh when the cd boots ( it is backed up to |
6 |
> > > inittab.old ). One way to fix it is to modify the script by creating |
7 |
> > > a new livecd-tools ebuild in your portage overlay - copy the current |
8 |
> > > ebuild and just add the patch to it. |
9 |
> > |
10 |
> > Please don't touch livecd-tools. Don't touch sysvinit. Instead, do |
11 |
> > the following in your livecd-stage2.spec file... |
12 |
> > |
13 |
> > livecd/bootargs: console=ttyS0,115200 |
14 |
> > |
15 |
> > That's it. When the CD is built, it'll have the console appended to |
16 |
> > both the "normal" and "nofb" kernels. Either kernel will work perfectly |
17 |
> > fine for serial console, so you're done. |
18 |
> |
19 |
> Eh, isn't that only good for kernel output? I'd like to actually be |
20 |
> able to get a shell on the serial line... |
21 |
|
22 |
<rhetorical> |
23 |
Why don't people trust that the guy who writes all this crap knows what |
24 |
he's talking about? |
25 |
</rhetorical> |
26 |
|
27 |
:P |
28 |
|
29 |
Normally, yes, it would only be good for kernel output, but as someone |
30 |
else mentioned, you have livecd-functions.sh that re-writes the inittab. |
31 |
Well, guess what triggers it? That's right, a "console=" option on the |
32 |
command line. If you type (or via catalyst, add) console=something, |
33 |
livecd-functions.sh (via functions.sh in baselayout) will interpret it |
34 |
and modify inittab accordingly before we ever even hit runlevel 3, so it |
35 |
starts a console on that serial line for login. |
36 |
|
37 |
Try it. |
38 |
|
39 |
-- |
40 |
Chris Gianelloni |
41 |
Release Engineering Strategic Lead |
42 |
Alpha/AMD64/x86 Architecture Teams |
43 |
Games Developer/Council Member/Foundation Trustee |
44 |
Gentoo Foundation |