2011/10/2 Stefan Lippers-Hollmann <s....@gmx.de>: > [ Unrelated to this, I have been playing with the idea of doing a > kFreeBSD-amd64/ unstable installation on real hardware, to allow me > some further wpasupplicant (or lirc) testing, but all of my systems > use lvm2 on top of MSDOS or GPT partition tables spanning the whole > drive (/ on lvm2, no dedicated /boot/). This configuration is > apparently not supported by Debian/ kFreeBSD yet, e.g. d-i/ partman > doesn't offer to use the volume group or existing logical volumes > therein and grub2 can't find the root device, if copied manually. > While I have tested to move kFreeBSD manually to a prepared ufs2 > filesystem on top of a LVM2 logical volume, which works fine after > adapting fstab and setting > kfreebsd_module_elf /lib/modules/8.2-1-amd64/geom_linux_lvm.ko > in grub.cfg of an external grub2 install (either on a regular > partition or linux / on lvm2) in kvm, I didn't try to move such > an install to real hardware, yet. ]
This patch should fix your grub.cfg problem, could you test? -- Robert Millan
--- /etc/grub.d/10_kfreebsd 2011-01-18 12:59:08.000000000 +0100 +++ 10_kfreebsd 2011-10-04 06:53:23.879864773 +0200 @@ -75,6 +75,17 @@ EOF fi + case "$(grub-probe -t abstraction --device ${GRUB_DEVICE})" in + lvm) + test -e "${module_dir}/geom_linux_lvm.ko" + + printf '%s\n' "${prepare_module_dir_cache}" + cat << EOF + kfreebsd_module_elf ${module_dir_rel}/geom_linux_lvm.ko +EOF + ;; + esac + case "${kfreebsd_fs}" in ext2fs) test -e "${module_dir}/ext2fs.ko"