]> git.ipfire.org Git - thirdparty/grub.git/commit
fix detection of non-LUKS CRYPT
authorCorey Hickey <bugfood-ml@fatooh.org>
Sat, 5 Nov 2016 04:58:14 +0000 (21:58 -0700)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 5 Nov 2016 12:28:50 +0000 (15:28 +0300)
commit5f311e86d296fd8a7a16faa01bc87b26c1e5aa86
treea3c2fc3e0632de4b81ae6e36fb18ae13733367b5
parent0de3eeb6232db319812335ec02ea4cfb15aa2fef
fix detection of non-LUKS CRYPT

grub_util_get_dm_abstraction() does a string comparison of insufficient
length. When using a UUID such as "CRYPT-PLAIN-sda6_crypt", the function
returns GRUB_DEV_ABSTRACTION_LUKS.

This results in the error:
    ./grub-probe: error: disk `cryptouuid/sda6_crypt' not found.

This appears to be a copy/paste error introduced in:
a10e7a5a8918bea6e2632055129fa9b516fe965a

The bug was (apparently) latent until revealed by:
3bca85b4184f74995a7cc2791e432173fde26d34

Signed-off-by: Corey Hickey <bugfood-c@fatooh.org>
grub-core/osdep/devmapper/getroot.c