On 10/9/15 3:26 PM, Bruce Dubbs wrote:
Why do you want your lfs root partition in a LVM container? I suppose grub can handle that, but it makes things a lot more complicated. Even in the above situation, Debian is not booting to a LVM partition.
I had an LVM partition when I started the exercise and I just blindly kept it that way (and snapshots are easy in LVM, although I have a feeling I can just unmount the physical partition, dd through gzip to a backup file and obtain about the same effect).
IIRC, you need a initrd to boot into a system with a root partition in LVM.
I'm sure I will understand this in the due course of time :)
I suggest tarring up the lfs partition and saving it on debian. Dump the LVM and create /dev/sdb4 as a regular ext4 partition (You can reuse the swap partition on sdb3). Then restore the saved LFS to sdb4 and mount it as /mnt/lfs. Do a bind mount of /boot to /mnt/lfs/boot, remount the virtual partitions and enter chroot. You should be able to follow the book, but you don't have to install grub. Just edit the grub.cfg file and add a menuentry for LFS.

  -- Bruce
Thanks for the advice. This sounds like it will work. I will try it out in the next few days and reply with the results.

-- Will


--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to