OpenVZ Forum


Home » Mailing lists » Users » Problems w/ busybox's init in VPS
Problems w/ busybox's init in VPS [message #11581] Tue, 27 March 2007 17:58 Go to next message
Enrico Weigelt is currently offline  Enrico Weigelt
Messages: 31
Registered: July 2006
Member
Hi folks,


I've got problems with booting an busybox-based VPS: init does
not seem to do anything (at least it does not run the boot
scripts) ?

Any suggest what could be wrong here ?


thx
--
------------------------------------------------------------ ---------
Enrico Weigelt == metux IT service - http://www.metux.de/
------------------------------------------------------------ ---------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
------------------------------------------------------------ ---------
Re: Problems w/ busybox's init in VPS [message #11591 is a reply to message #11581] Tue, 27 March 2007 18:55 Go to previous messageGo to next message
Enrico Weigelt is currently offline  Enrico Weigelt
Messages: 31
Registered: July 2006
Member
* Enrico Weigelt <weigelt@metux.de> wrote:

Hi,

> I've got problems with booting an busybox-based VPS: init does
> not seem to do anything (at least it does not run the boot
> scripts) ?

I strace'd a little bit, and there are some strange things
going on:

* init tries to write to fd -1 ! (maybe it didn't get some
valid stdio passed on startup)
* it tries to do some tty specific ioctl()'s on fd 0, which
doesn't seem to be an tty (at least it gets ENOTTY)
* when reading /etc/inittab, it gets fd 0, so it seems no
other fd's (ie. stdin, stdout, stderr) are open !
* when trying to open /dev/console, it gets permission denied.


Any suggest what could be wrong here ?

cu
--
------------------------------------------------------------ ---------
Enrico Weigelt == metux IT service - http://www.metux.de/
------------------------------------------------------------ ---------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
------------------------------------------------------------ ---------
Re: Problems w/ busybox's init in VPS [message #11593 is a reply to message #11591] Tue, 27 March 2007 20:13 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Let's move the discussion to devel@ list. I'm now posting to both, but
please remove users@ when replying.

Enrico Weigelt wrote:
> * Enrico Weigelt <weigelt@metux.de> wrote:
>
> Hi,
>
>
>> I've got problems with booting an busybox-based VPS: init does
>> not seem to do anything (at least it does not run the boot
>> scripts) ?
>>
>
> I strace'd a little bit, and there are some strange things
> going on:
>
> * init tries to write to fd -1 ! (maybe it didn't get some
> valid stdio passed on startup)
>
Perhaps it tried to open /dev/console and failed (open() returned -1).
> * it tries to do some tty specific ioctl()'s on fd 0, which
> doesn't seem to be an tty (at least it gets ENOTTY)
>
Again that should probably be /dev/console (in case no fds are open the
first successful open() _usually_ returns 0).
> * when reading /etc/inittab, it gets fd 0, so it seems no
> other fd's (ie. stdin, stdout, stderr) are open !
>
This (the absense of stdin/out/err) is probably perfectly valid -- since
init does not have a parent process, nobody would read/write those fds.
> * when trying to open /dev/console, it gets permission denied.
>
Ah-ha, probably that is the root of the problem. What if you will create
an empty text file named /dev/console?
>
> Any suggest what could be wrong here ?
>
> cu
>
Previous Topic: linux-2.6.20-openvz tree
Next Topic: Best way to detect whether I'm in VPS ?
Goto Forum:
  


Current Time: Mon Apr 15 22:48:57 GMT 2024

Total time taken to generate the page: 0.01352 seconds