-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secboot: register keys in keyring with also the legacy paths (#14718)
snap-bootstrap use to unlock encrypted disks using /dev/disk/by-partuuid paths. This was used ask identifier for the keys stored in the keyring. However /dev/disk/by-uuid path makes more sense as UUID is a part of LUKS2, and cryptsetup uses it for the identify of the volume key. Partition UUID on the other hand are only for GPT partitions. However older snapd will query the key using the old path. So we need to make sure snap-bootstrap also register the old name. A new snap-bootstrap should always be able to run and older snapd.
- Loading branch information
1 parent
4e36599
commit 5f5f773
Showing
5 changed files
with
21 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters