kernel boot parameters -> init environment

phil-news-nospam_at_ipal.net
Date: 04/26/05


Date: 26 Apr 2005 01:10:15 GMT

The kernel boot parameters are supposed to be supplied to the init
program as environment variables. But it seems that the ones the
kernel already knows about are removed from that environment. Is
there a reason for this? Would you suspect problems if the kernel
were hacked to not do this, and pass every parameter?

I want to access to some parameters like root= in my early userspace
init program to have it do the mounting of the root device, if the
parameter is specified (other things if not).

-- 
-----------------------------------------------------------------------------
| Phil Howard KA9WGN       | http://linuxhomepage.com/      http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/   http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


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: 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)
  • [PATCH v2 2/7] ia64, kexec: Make INIT safe while transition to kdump/kexec kernel
    ... Asserting INIT on the beginning of kdump/kexec kernel will result ... Then assert INIT while kdump kernel is booting, ... INIT handler for previous kernel is invoked on kdump kernel ...
    (Linux-Kernel)
  • 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)
  • Re: Linux 2.6.15-rc5: off-line for a week
    ... setting the environment variables, there's a wiki where to document all ... the filesystems mounted and the kernel modules. ... to start transactions on CPUShare first (my spare time is quite ... write a netconsole oops dumper that pushes the oops to the network using ...
    (Linux-Kernel)