On Sat, Aug 23, 2014 at 06:19:07PM +0200, Ronnie van Aarle wrote:
> I just googled grub configuration to make sure.
> 

 For the last time, please do NOT top post on this list.

> Unless you explicitly embed the grub menu configuration options in the grub
> image, grub loads its configuration file from /boot/grub/grub.cnf.
> 
> This means that system bios provides access to the storage device
> containing the boot files.
> 

 That seems a reasonable view of grub (I try not to delve into its
details - ALL bootloaders are nasty, because of what they have to
do).  But grub is not the issue - we agree that it has passed
control to a kernel.  And in LFS we do not tell grub to pass an
initrd to the kernel.

> Hardware device drivers and other features that must be compiled into the
> kernel also do not show 'm' as an option the kernel configuration menu.
> 

 If you have no sane configuration for your particular machine,
there is a very good chance that some of what you need is not
selected in whatever default config you happen to choose as a
starting point (e.g. 32-bit x86 or 64-bit x86_64, but people might
choose other configs as their starting point).  Similarly, a distro
config will have almost everything which it is possible to select,
but selected as modules.  Distros build to run on as many machines
as possible, using an initrd.

> However, I'm not exactly sure what runlevel, but from the stage where the
> kernel gets in control of handling the devices and the filesystem, from
> there on the right kernel objects for handling this must be available,
> loaded and initialized.

 Basically, once you get to udev (or udev_retry) in the LFS
bootscripts, in rcS.d before you get to a runlevel.  Before the
first of those, we mount proc, sysfs, and /run, then try to
auto-load modules [ might work, if the module is for specific
and recognizable hardware, but I would not rely on it in general ],
and we bring up the loopback interface.

 Between starting udev and retrying it we bring up swap, check the
filesystems, mount the filesystems defined in /etc/fstab for
automatic mounting, and clean out temporary directories.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to