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.
This commit is contained in:
parent
bcf8c5814d
commit
c7f93a20c4
2 changed files with 7 additions and 1 deletions
|
@ -97,6 +97,7 @@ struct grub_cryptodisk
|
|||
grub_uint8_t rekey_key[64];
|
||||
grub_uint64_t last_rekey;
|
||||
int rekey_derived_size;
|
||||
grub_disk_addr_t partition_start;
|
||||
};
|
||||
typedef struct grub_cryptodisk *grub_cryptodisk_t;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue