Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jeff Dike
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/consol

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
>>> >>> >> It's a 32-bit binary on a 32-bit host, or 64-on-64? >> >> > Hm, thats interesting too. My host is 64-bit which is what I copied all > the files from for the UML fs. I must be compiling linux as 64-bit, > though, and /sbin/init as well as /bin/sh can exec ok. > Sor

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
Jeff Dike wrote: > On Wed, Aug 29, 2007 at 09:43:27AM -0600, Jon Rafkind wrote: > >>> 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

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
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 => (0xe000) >>> libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7ebe000) >>> libc.so.6 => /lib/

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jeff Dike
On Wed, Aug 29, 2007 at 09:43:27AM -0600, Jon Rafkind wrote: > > 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 sulogi

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
>> 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 => (0xe000) >> libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7ebe000) >> libc.so.6 => /lib/libc.so.6 (0xb7d96000) >>

Re: [uml-user] how to get root_fs

2007-08-29 Thread Jeff Dike
On Mon, Aug 27, 2007 at 10:29:07PM -0500, Feng Xian wrote: > Hi, > I am using linux-2.6.17. I plan to build my own uml kernel, but dont know > how to get (or set up) it. Thanks! Try following the instructions at http://user-mode-linux.sourceforge.net/index.html - they might be a bit more helpful

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jeff Dike
On Tue, Aug 28, 2007 at 11:44:41PM -0600, Jon Rafkind wrote: > Every time I ran UML it said > > Warning: unable to open an initial console. This shouldn't be fatal, but you should have a /dev/console. > I think I have all the right libraries for /sbin/sulogin in my image but > it still won't exe