On Wed, Aug 29, 2007 at 11:10:28AM -0600, Jon Rafkind wrote:
> After more debugging it appears that sulogin can be exec'd but there are
> other things wrong that prevent it from opening up,
strace will tell you if you haven't already tried that.
> I was assuming this
> was not having /dev/console so sulogin gives up and then /sbin/init just
> tries to keep running /sbin/sulogin forever. /sbin/init will prompt the
> user if /etc/inittab does not have a field with 'initdefault' so after
> commenting out that field and running UML I could see /sbin/init just
> hang, most likely waiting for input.
> So, how can I get /dev/console?
There was no /dev/console in your chroot, so presumably that wasn't
the problem. In any case, you use mknod, and look at the host to get
the device type and major and minor numbers.
Work email - jdike at linux dot intel dot com