-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial support for rootfs disk encryption #732
Merged
+378
−51
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
50185a7
base: optee-os-fio: add virtual package for optee-os-ta
ricardosalveti 3c41146
base: optee-client: move ckteec to a generic appends
ricardosalveti eb6c737
base: lmp-image-common: increase IMAGE_OVERHEAD_FACTOR with luks
ricardosalveti 6e21705
base: initramfs-framework: add support for luks2/cryptfs with pkcs11
ricardosalveti 7dd30a4
base: initramfs-ostree-lmp-image: support luks/cryptfs module
ricardosalveti 09395a4
base: lmp-boot-firmware: set install path based on OSTREE_DEPLOY_USR_…
ricardosalveti ac309c7
base: u-boot-ostree-scr-fit: add support for ostree split and usr deploy
ricardosalveti f80b638
bsp: u-boot-ostree-scr-fit: mx8qm: add support for ostree usr deploy
ricardosalveti c1b32af
bsp: wic: add sdimage-imx8-spl-split-boot-sota.wks.in
ricardosalveti 9553037
bsp: lmp-machine-custom: mx8mm: add support for encrypted rootfs
ricardosalveti f7c4410
base: optee-os-fio-se05x: drop CFG_PKCS11_TA_TOKEN_COUNT settings
ricardosalveti 87c16b8
base: systemd: enable tpm2 if available in MACHINE_FEATURES
ricardosalveti 3ca3757
base: initramfs-framework: add support for luks2/cryptfs with tpm2
ricardosalveti a9c11c5
base: initramfs-ostree-lmp-image: conditional selection for luks2 sup…
ricardosalveti d715ffe
base: initramfs-framework: merge pkcs11/tpm2 cryptfs implementation
ricardosalveti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ricardosalveti iiuc, ak-lite/ostree besides adjusting uEnv.txt also copies boot images (etc SPL, u-boot.itb)/version.txt file, and path to both copies are saved in
bootdir
andbootdir2
vars in uEnv.txtThe only question is why do we need two dedicated variables
ostree_split_boot
andostree_deploy_usr
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
ostree_split_boot == 1
(which means that LUKS/dm-crypt is enabled), butostree_deploy_usr != 1
will this part afterelse
make sense?:ext4load ${devtype} ${devnum}:${rootpart} ${loadaddr} ${ostree_root}/usr/lib/firmware/version.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split boot is simply to separate the ostree /boot content in a separated partition, and also used on UEFI-based systems (e.g. intel). With split the user can decide to encrypt or not the rootfs, as both cases should be supported.
Deploy usr is to force ostree to deploy files under rootfs/usr/lib/ostree-boot (can be anything) to the first partition, which is important for encrypted rootfs.