Bug#783740: grub2-common: grub-install fails to install to LVM volumes
Sebastian Pipping
sebastian at pipping.org
Wed Apr 29 17:24:26 UTC 2015
Package: grub2-common
Version: 2.02~beta2-22
grub-install failes to install to a LVM volume. The error I get is
# grub-install --boot-directory=/mnt/lv-root/boot /dev/mapper/vg-lv
grub-install: error: disk
`lvmid/xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx'
not found.
To reproduce:
# touch /var/tmp/disk1
# truncate --size=$((100*1024**2)) /var/tmp/disk1
# loop_device="$(losetup --show -f /var/tmp/disk1)"
# echo "${loop_device}"
/dev/loop0
# vgcreate vg "${loop_device}"
# lvcreate --name lv -l 100%free vg
# parted /dev/vg/lv mklabel msdos
# parted /dev/vg/lv mkpart primary ext4 4m 100%
# 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
Installing for i386-pc platform.
grub-install: error: disk
`lvmid/xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx'
not found.
It may be related to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782264
but it does not need nested LVM and no chroot to show, either.
Best,
Sebastian
More information about the Pkg-grub-devel
mailing list