]> git.ipfire.org Git - thirdparty/grub.git/commit
cryptodisk: teach grub_cryptodisk_insert() about partitions (bug #45889)
authorgrub-devel@iam.tj <grub-devel@iam.tj>
Sat, 7 Nov 2015 15:52:59 +0000 (18:52 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 7 Nov 2015 15:52:59 +0000 (18:52 +0300)
commitc7f93a20c47f712d45cd97fdfd43e0715ae855e3
treec3db3289377a7256d8d03f76345367a1e93c026a
parentbcf8c5814d8499bebe913ddc1f9c6a85bc45a02e
cryptodisk: teach grub_cryptodisk_insert() about partitions (bug #45889)

It is not possible to configure encrypted containers on multiple partitions of
the same disk; after the first one all subsequent fail with

disk/cryptodisk.c:978: already mounted as crypto0

Store partition offset in cryptomount descriptor to distinguish between them.
grub-core/disk/cryptodisk.c
include/grub/cryptodisk.h