Re: root=LABEL= problem [Was: Re: Linux Issue]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-02-02 at 14:41 +0000, Alan Cox wrote:
> On Iau, 2006-02-02 at 09:19 +0100, J.A. Magallon wrote:
> > > it's 100% done in the initrd.
> > 
> > Isn't this a matter of the bootloader ?
> 
> 
> The boot loader knows very little and the BIOS may not even be able to
> drive some of the hardware to go looking for volume labels. The sequence
> used is that the initrd is the root file system and contains application
> code run very early on in order to find out where the 'real' root fs is
> by label. Having mounted that it can then pivot_root() itself into the
> final desired configuration.
> 
> All userspace, and all the initrd building is done by a tool called
> mkinitrd.

... which gets done for you automatically if you use "make install" from
the kernel sources after building. In addition "make install" is nice
enough for you to add the new kernel to your bootloader.

(and no this isn't a kernel patch either; "make install" basically has a
hook for a distribution specific script to be run, which at least for
Fedora causes the initrd to be made and the kernel+initrd to be added to
the bootloader)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux