Hi,

I am using LFS 7.0 with LVM2/ext4 for all partitions excepted /boot 
which is a primary partition using ext4.
I haven't followed the Bryan Kadzban hint.

What I needed :
- LVM2 2.02.88
- device-mapper 1.02.28
- dracut-013
- some minor modifications in LFS init scripts (to properly remount 
/dev/pty when initramfs already did it)

In my configuration, /usr and / are on the same partition. It make 
things much more easy when executing the first init scripts.

My main grub entry is :

menuentry "LFS7.0 on LVM2" {
         insmod ext2
         set root=(hd0,1)
         linux   /vmlinuz root=LABEL=root-fs ro
         initrd  /initramfs.img
}

/boot is on the 1st primary partition of the first disk
vmlinuz and initramfs.img are symbolic links to kernel and initramfs 
files in /boot

initramfs is generated using dracut

While installing I've been using a second hard drive for testing LVM2. 
All volumes are using ext4 filesystem with labels to identify them.

I labelled my root filesystem "root-fs". As it is part of a LVM2 group, 
the generated dracut script will enable all LVM2 groups to find it. If 
it's not part of a LVM2 group you can still add grub the option 
rd_LVM_VG=yourVGname to the linux line to enable a specific LVM2 group 
when in initramfs.

I'm sorry but I don't have a step by step hint to give you. I needed 
many reboots to manage LFS7 to run on LVM2.

Regards,
René

Le 03/01/2012 21:50, Baho Utot a écrit :
> Is the lvm hint by Bryan Kadzban still viable/relavent?
>
> I would like to boot LFS installed to a lvm partition.
>
> I have a 2 TB drive that I use and it is currently booting Arch linux on lvm.
> I would like to convert to use LFS/BLFS.  I would like to get away from Arch
> now because of the bloat and the crazy split packages.  Just try to build
> the "base packages".   LFS/BLFS suits me just fine and I like the way it is
> being developed.  I am going to use LFS/BLFS with Trinity.
>
> I will need to boot into lfs install in a lvm partition. So any advice will be
> greatly apreciated.
>
> I could boot LFS on a regular partition and use lvm for everything else but
> that doesn't really fit how I want to use linux.
>
> Thank you for all your hard work.
>
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to