forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redo of implementation for feature request armbian#947 on current master
This was already implemented with armbian#948, before but never made it into the master branch yet. Probably because the development branch has been abandoned in the meantime and it is to much effort now to merge it into master. It includes all the cleanup changes from commit 08743d3 and has been successfully tested on an Odroid HC1. In addition to what is currently in the `luks` branch the following improvments where done/added: 1. update_initramfs() function in debbootstrap-ng.sh, which needs to be invoked after the partition layout and /etc/crypttab was created. Else `cryptroot-unlock` won't work and you'll run into: https://serverfault.com/questions/907254/cryproot-unlock-with-dropbear-timeout-while-waiting-for-askpass Apart from that it might be useful to always run `update-initramfs` at the end of the build process anyway, in case customize_image (userpatches) made some changes to the initramfs tools configs. 2. CRYPTROOT_SSH_UNLOCK=yes/no config option. It's by default set to yes, but it might be desired by some users to disable enable SSH/dropbear access while still having LUKS support. E.g. if they have a device that has a display and keyboard. 3. If no `authorized_keys` file is provided via userpatches, a new SSH key pair is generated and for convenience copied to the output directory along with the final image.
- Loading branch information
Showing
7 changed files
with
149 additions
and
14 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
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