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:
a10e7a5a89
The bug was (apparently) latent until revealed by:
3bca85b418
Signed-off-by: Corey Hickey <bugfood-c@fatooh.org>
			
			
This commit is contained in:
		
							parent
							
								
									0de3eeb623
								
							
						
					
					
						commit
						5f311e86d2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -143,7 +143,7 @@ grub_util_get_dm_abstraction (const char *os_dev) | |||
|       grub_free (uuid); | ||||
|       return GRUB_DEV_ABSTRACTION_LVM; | ||||
|     } | ||||
|   if (strncmp (uuid, "CRYPT-LUKS1-", 4) == 0) | ||||
|   if (strncmp (uuid, "CRYPT-LUKS1-", 12) == 0) | ||||
|     { | ||||
|       grub_free (uuid); | ||||
|       return GRUB_DEV_ABSTRACTION_LUKS; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue