URL: <http://savannah.gnu.org/bugs/?45163>
Summary: Support for installing to LVM volumes broke somewhere after GRUB 2.00 Project: GNU GRUB Submitted by: hartwork Submitted on: Thu 21 May 2015 09:38:08 PM GMT Category: None Severity: Major Priority: 5 - Normal Item Group: Software Error Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: Release: Git master Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: Hi! Earlier versions of GRUB 2 supported installation to LVM volumes using grub-install --boot-directory=.... /dev/... syntax. Andrei Borzenkov confirmed this to be a bug at https://lists.gnu.org/archive/html/grub-devel/2015-05/msg00147.html . While a BIOS are not able to boot the results, support this scenario is useful to environments with virtual machines, where the virtual machine never sees the true LVM nature on the outside of what is a plan disk to them on the inside. The following commands reproduce the setup (in RAM if /tmp is tmpfs). With a plain LVM volume, the error is the same tough. # tmpfile="$(mktemp)" # echo "${tmpfile}" # truncate --size=$((100*1024**2)) "${tmpfile}" # loop_device_2="$(losetup --show -f "${tmpfile}")" # echo "${loop_device_2}" # vgcreate vg "${loop_device_2}" # lvcreate --name lv -l 100%free vg # sleep 1 # parted /dev/vg/lv --script mklabel msdos # parted /dev/vg/lv --script mkpart primary ext4 4m 100% # sleep 1 # mkfs.ext4 /dev/mapper/vg-lv1 # mkdir /mnt/lv-root # mount /dev/mapper/vg-lv1 /mnt/lv-root # mkdir /mnt/lv-root/boot # grub-install --boot-directory=/mnt/lv-root/boot /dev/mapper/vg-lv ; echo $? Installing for i386-pc platform. grub-install: error: disk `lvmid/KO9MVd-KNgN-Nbo0-RJb0-pGdK-K7lO-apdskW/rrvxSA-SFY6-P6gy-1jYv-0ims-RmyL-m1KZMB' not found. 1 For user friendly view of the related mail thread I can recommend http://thread.gmane.org/gmane.comp.boot-loaders.grub.devel/23312 Best, Sebastian _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45163> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub