support UUID for geli

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-24 21:11:14 +02:00
parent 7efb5c9eea
commit 23432f6542
3 changed files with 33 additions and 11 deletions

View file

@ -284,6 +284,7 @@ configure_ciphers (const struct grub_luks_phdr *header)
newdev->hash = hash;
newdev->log_sector_size = 9;
grub_memcpy (newdev->uuid, uuid, sizeof (newdev->uuid));
COMPILE_TIME_ASSERT (sizeof (newdev->uuid) >= sizeof (uuid));
return newdev;
}