1 |
Hi all, |
2 |
|
3 |
I put up a post on the forums, but it didn't look too popular: |
4 |
|
5 |
http://forums.gentoo.org/viewtopic.php?t=74656 |
6 |
|
7 |
Basically, I've got a server with a serial console, and I've got: |
8 |
|
9 |
BIOS/POST/ACPI/Boot ROMs |
10 |
Grub |
11 |
Kernel debug messages (as the kernel loads) |
12 |
agetty (for logins) |
13 |
|
14 |
all going to ttyS1 (the RJ45 serial port), but not the output of the runscripts! |
15 |
|
16 |
Does anybody have some pointers on how to get the runscripts to output to ttyS1 instead of the video card? |
17 |
|
18 |
Relevant info: |
19 |
|
20 |
grub.conf: |
21 |
title=linux-2.4.20-wolk4.6s.grsec serial console |
22 |
root (hd0,1) |
23 |
kernel /boot/linux-2.4.20-wolk4.6s.grsec root=/dev/md1 devfs=mount,nodall console=tty0 console=ttyS1,38400 |
24 |
|
25 |
title=linux-2.4.20-wolk4.6s.nogrsec serial console |
26 |
root (hd0,1) |
27 |
kernel /boot/linux-2.4.20-wolk4.6s.nogrsec root=/dev/md1 devfs=mount,nodall console=tty0 console=ttyS1,38400 |
28 |
|
29 |
/etc/inittab: |
30 |
c0:12345:respawn:/sbin/agetty 38400 ttyS1 vt100 |
31 |
|
32 |
/etc/securetty: |
33 |
ttyS1 |
34 |
tts/1 |
35 |
|
36 |
Those are just the relevant snippets. The only part of the bootup process I currently don't see is the part where: |
37 |
|
38 |
* Starting <whatever> [OK] |
39 |
* starting <something else> [OK] |
40 |
|
41 |
The only relevant post on google I saw was saying I needed sysvinit to redirect, but that seemed wacky. Oh, I did delete the /etc/ioctl.save as the directions in the serial-console.txt docs in the kernel Documentation tree say. |
42 |
|
43 |
Am I just supposed to create a custom initscript that redirects all commands to /dev/tts/1? Or do I just need to redirect /sbin/rc while its running sysinit? |
44 |
|
45 |
Any pointers or BTDT would be appreciated. |
46 |
|
47 |
thanks! |
48 |
|
49 |
|
50 |
-- |
51 |
adam |