Re: /sbin/init



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 |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • v2.6.25-4569-gb69d398: Section mismatch in reference from the function uniq_ioapic_id() to t
    ... Section mismatch detected in this mornings build of kernel v2.6.25-4569-gb69d398. ... The function uniq_ioapic_idreferences ... This is often because uniq_ioapic_id lacks a __init ... CHK include/linux/utsrelease.h ...
    (Linux-Kernel)
  • Re: /sbin/init
    ... On Fri, 24 Nov 2006, Jerry Peters wrote: ... |>> init can dump messages to the console. ... |>> are permitted on the kernel command line and recompiled the kernel. ... initrd, initramfs, etc, be sure that /dev/console is in fact available ...
    (comp.os.linux.development.system)
  • Re: mdadm -A (1.7.0) segfaults; md raid device not started on boot
    ... How does the kernel know to load the raid module when I invoke mdadm, ... init init/main.c:689 ... PCI: PCI BIOS revision 2.10 entry at 0xfd9cc, ... ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ...
    (comp.os.linux.setup)
  • Re: /sbin/init
    ... | On Thu, 23 Nov 2006, Jerry Peters wrote: ... |>> init can dump messages to the console. ... |>> are permitted on the kernel command line and recompiled the kernel. ... initrd, initramfs, etc, be sure that /dev/console is in fact available ...
    (comp.os.linux.development.system)
  • Re: boot/repair floppy or CD
    ... The information you put in lilo.conf is used by lilo when you run lilo. ... the other runs without any kernel, ... kernel proper is booted, the root file system mounted, and "init" reads /etc/inittab, and finds instructions to run the script /etc/rc.d/rc.sysinit. ...
    (comp.os.linux.misc)