WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: rungetty segfault  (Read 1980 times)

Offline cal2

  • Newbie
  • *
  • Posts: 1
rungetty segfault
« on: August 27, 2010, 08: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.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: rungetty segfault
« Reply #1 on: August 27, 2010, 09:28:28 AM »
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.