Re: what's the processing sequence for initramfs during boot?

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

 



Andy Green wrote:
> 
> New to me... but I do know that having an (external) initrd at all is
> completely optional.  You can (and I think Debian does it this way; I
> certainly do it that way on embedded devices) get the kernel to mount
> the filesystem on the /root= partition directly and jump straight into
> the init program found on there.  Maybe that is in fact done via this
> mysterious internal cyst of an initrd, I don't know.
> 
This depends on the drivers built into the kernel, and what driver
your root file system needs. If the driver needed to read the root
file system is build into the kernel, you do not need the initrd. IN
simpler times, the standard IDE driver was built into the stock
kernels, as well as the ext2 file system driver, so you only needed
an initrd if you had an unusual IDE controller, if you were using
something like SCSI drives, and/or you were using a different file
system on the root device. (Because ext3 is ext2 with journaling
added, the ext2 driver is enough for booting.) But that has changed.
I have not looked lately, but I think the stock kernel only has
drivers for the initrd, and any hard drive controller drivers need
to be in it. I am not sure about file system drivers, but i suspect
that ext2 is still compiled into the kernel.

If I build my own kernel, I build in the drivers I know I am going
to need. So an initrd is not needed. But I need to build a different
kernel for my laptop, for my desktop, and for my server. (SATA,
PATA, and SCSI controllers.) I don't want to get in to processor
types, or some of the oddball machines around here.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux