]> git.ipfire.org Git - thirdparty/grub.git/commit
devmapper: check for valid device abstraction in get_grub_dev
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 26 Dec 2015 18:45:22 +0000 (21:45 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 26 Dec 2015 18:45:22 +0000 (21:45 +0300)
commit3bca85b4184f74995a7cc2791e432173fde26d34
tree0c1ca471f5529040ff9e3e48f28fece7103d709e
parenta9399f2e1e5819fdd9bd2a4d35d32420dd6cc679
devmapper: check for valid device abstraction in get_grub_dev

This was lost when code was refactored. Patch restores previous behavior.

It is still not clear whether this is the right one. Due to the way we
detect DM abstraction, partitions on DM are skipped, we fall through to
generic detection which ends up in assuming parent device is BIOS disk.

It is useful to install GRUB on VM disk from the host. But it also means
that GRUB will mistakenly allow install on real system as well.

For now let's fix regression; future behavior needs to be discussed.

Closes: 45163
grub-core/osdep/devmapper/getroot.c
grub-core/osdep/linux/getroot.c