Re: /sbin/init
- From: phil-news-nospam@xxxxxxxx
- Date: 24 Nov 2006 04:41:40 GMT
On Thu, 23 Nov 2006 13:50:51 -0700 Perianayagam Somasundaram <somu@xxxxxxxxxxxxxx> wrote:
| On Thu, 23 Nov 2006, Jerry Peters wrote:
|
|> Kaz Kylheku <kkylheku@xxxxxxxxx> wrote:
|>> Pascal Bourguignon wrote:
|>>> When init is run, no file system has been mounted yet (but of course
|>>> the root file system where /sbin/init is, but it may be mounted
|>>> read-only). And no service, like syslog is running yet either.
|>>
|>> init can dump messages to the console.
|>>
|>> The only time I've needed debug from init, it was actually from its
|>> ld.so interpreter.
|>>
|>> To do that, I added LD_DEBUG to the list of enviornment variables that
|>> are permitted on the kernel command line and recompiled the kernel.
|>
|> I don't understand why you needed to recompile the kernel, any strings
|> that look like keyword=value that are not recognized as kernel parameters
|> are passed to init as environment variables.
|> I use this extensively in my initramfs startup script.
|>
|> Jerry
|>
|
| Nope. Kernel has not boot params passed thru GRUB atleast. I am
| just worried about the console initialization and whether that
| was done correctly. The only reason I think /sbin/init or /bin/sh
| is hanging is because they are not able to grab the terminal.
If you are manipulating devices somewhere along the way, such as with
initrd, initramfs, etc, be sure that /dev/console is in fact available
to be opened. I left out a /dev/console in one of my init replacements
that was juggling filesystems around ahead of time (something that will
eventually move to initramfs), and not-so-strangely, no output appeared.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2006-11-23-2239@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- Follow-Ups:
- Re: /sbin/init
- From: Jerry Peters
- Re: /sbin/init
- References:
- /sbin/init
- From: Perianayagam Somasundaram
- Re: /sbin/init
- From: Pascal Bourguignon
- Re: /sbin/init
- From: Kaz Kylheku
- Re: /sbin/init
- From: Jerry Peters
- Re: /sbin/init
- From: Perianayagam Somasundaram
- /sbin/init
- Prev by Date: Re: /sbin/init hanging
- Next by Date: Re: "Hello, World!" Operating System
- Previous by thread: Re: /sbin/init
- Next by thread: Re: /sbin/init
- Index(es):
Relevant Pages
|
|