Jon Rafkind wrote:
>>> I think I have all the right libraries for /sbin/sulogin in my image but
>>> it still won't exec. Any ideas?
>>>
>>> $ ldd mnt/sbin/sulogin
>>>         linux-gate.so.1 =>  (0xffffe000)
>>>         libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7ebe000)
>>>         libc.so.6 => /lib/libc.so.6 (0xb7d96000)
>>>         /lib/ld-linux.so.2 (0xb7ef6000)
>>> $ ls mnt/lib/libcrypt.so.1 mnt/lib/libc.so.6 mnt/lib/ld-linux.so.2
>>> mnt/lib/ld-linux.so.2*  mnt/lib/libc.so.6*  mnt/lib/libcrypt.so.1*
>>>     
>>>       
>> What happens if you chroot to mnt and try to run sulogin?
>>   
>>     
> I was able to run sulogin at first although it complained about the
> password files not being there. After adding /etc/passwd and /etc/shadow
> I could execute sulogin just fine.
> # /sbin/sulogin
> Give root password for maintenance
> (or type Control-D to continue):
> bash-3.1#
>
> But I still can't exec it under UML.
>   
After more debugging it appears that sulogin can be exec'd but there are
other things wrong that prevent it from opening up, 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?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to