factor cryptodisk part out

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-23 18:00:42 +02:00
parent fcf3bfb6ff
commit 8585e54bec
7 changed files with 80 additions and 655 deletions

View file

@ -962,7 +962,7 @@ grub_util_get_grub_dev (const char *os_dev)
dash = grub_strchr (uuid + sizeof ("CRYPT-LUKS1-") - 1, '-');
if (dash)
*dash = 0;
grub_dev = grub_xasprintf ("luksuuid/%s",
grub_dev = grub_xasprintf ("cryptouuid/%s",
uuid + sizeof ("CRYPT-LUKS1-") - 1);
grub_free (uuid);
}