Re: make-kpkg and initrd
Norbert Veber <nveber@debian.org> writes:
> On Mon, Oct 22, 2001 at 01:16:24PM -0700, Rupa Schomaker wrote:
>> If your root is on an LVM you need to use an initrd to kickstart the
>> LVM subsystem before mounting root.
>
> Oh. I just have a separate, very small ext2 /boot filesystem, since I was
> experimention with various filesystems not supported by grub. I dont use
> LVM though.
> How does the boot loader (whatever it may be) find the kernel to be loaded
> from an LVM system anyway?
<nod> What you do for an LVM is you have a small <insert favorite fs>
/root filesystem. Mine is ext2 since grub used to not support XFS,
but i can convert it to XFS now since grub supports XFS. /boot
contains everything necessary to start the kernel. This usually is
your kernel image and your initrd image.
The initrd image has the LVM support modules and programs. It
initializes the LVM in preparation for the kernel to mount he real
root (as apposed to the root that is the initrd).
So, my grub entry looks something like:
title Debian 2.4.9 (working)
root (hd0,0)
kernel /vmlinuz-2.4.9-xfs-lvm root=/dev/shaktivg/rootlv devfs=mount
initrd /initrd-lvm-2.4.9-xfs-lvm.gz
The root (hd0,0) points to the /boot file system. The / from grub's
point of view is relative to /boot in linux. The initrd sets up lvm
so that we now have a /dev/shaktivg/rootlv entry. When the kernel
mounts the actual root everything works great.
Hope this makes sense...
> Thanks,
>
> Norbert
--
-rupa
Reply to: