Skip to content
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

Support creating image with encrypted rootfs #3

Open
3nprob opened this issue Jan 26, 2022 · 0 comments
Open

Support creating image with encrypted rootfs #3

3nprob opened this issue Jan 26, 2022 · 0 comments

Comments

@3nprob
Copy link

3nprob commented Jan 26, 2022

It would be a huge step forward to facilitate creating images where the rootfs is a LUKS partition, with prompt for passphrase on boot.

Proposal: Add new flags:

  [--cryptroot] (if set, encrypt rootfs)
  [-p passphrase] 
  [-f passphrase-file] (-p and -f are mutually exclusive)
  [--cryptroot-parameters=''] (optional extra parameters to pass to cryptsetup)

Inspiration taken from CRYPTROOT parameters in https://docs.armbian.com/Developer-Guide_Build-Options/#main-options

Enabling remote ssh unlock via dropbear/tinyssh would be a nice addition, but is not required.

It seems like this can currently be achieved as a two-step process by first building an image like normal here, and then generating an encrypted one with https://github.com/dreemurrs-embedded/archarm-mobile-fde-installer (though it seems PinePhone Pro is not yet supported there?)

There needs to be a disclaimer that encrypted images should be considered single-use (as LUKS keys would be identical across installations otherwise)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant