Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: cal2 on August 27, 2010, 11:02:27 AM

Title: rungetty segfault
Post by: cal2 on August 27, 2010, 11:02:27 AM
Hi.

I tried to enable an additional rungetty instance on TTY 2.

I unpacked the original microcore-3.0 initrd, edited /etc/inittab to:

Code: [Select]
tty1::respawn:/sbin/rungetty tty1 --autologin root
tty2::respawn:/sbin/rungetty tty2 -u root -- sudo /opt/script hello
The accompanied script:
Code: [Select]
!#/bin/sh
echo $0: $1
I made the script executable and created a new initrd:
Code: [Select]
find . -print0 | cpio -o0H newc | gzip > /tmp/initrdBooting the original kernel I extracted from microcore-3.0.iso gives:
Code: [Select]
rungetty[297]: segfault at 8 ip 08049b83 sp bfc60174 error 4 in rungetty[8048000+3000]Has anyone seen this kind of error already?

Would it be feasable /possible to use mingetty instead of rungetty?

Cheers.
Title: Re: rungetty segfault
Post by: gerald_clark on August 27, 2010, 12:28:28 PM
For additional virtual terminals, just uncomment the existing getty lines, and "kill -1 1"

A better solution is to install V3.1rc2 and use the multivt boot option.