~woodrow-shen/+git/fortknox-initramfs-snap:master

Last commit made on 2019-05-27
Get this branch:
git clone -b master https://git.launchpad.net/~woodrow-shen/+git/fortknox-initramfs-snap
Only Woodrow Shen can upload to this branch. If you are Woodrow Shen please log in for upload directions.

Branch merges

Branch information

Recent commits

a87ce89... by Woodrow Shen

Make original recipe to create a pure initramfs cpio for builtin only

75e1125... by Tim Chen

Use tpm2-initramfs-tool for sealing/unsealing TPM

* Remove unneed dependency libraries
* Use TPM tss 2.1.x branch
* Refactor script

fa156c2... by Woodrow Shen

Add README.md for instructions

ccec4ba... by PMR <pmr@pmr-lander>

Merge #365437 from ~timchen119/fortknox/+git/fortknox-kernel:alpha-encrypt

Initial FDE initramfs implementation

The changes include the fortknox-kernel (badger) alpha delivering.
For the alpha milestone we will deliver:

* A working UC16 gadget and kernel snap
* The LUKS/FDE solution with a dummy key passphrase 'ubuntu' and without TPM.
* Include cryptsetup and TPM tools/libs in initramfs

Changes:

* Modified install-firstboot-from-initrd hook for needed crypto kernel modules.
* Add crypto-functions and partitioning logic in scripts/crypto-functions for cryptsetup/LUKS encrpytion.
* Add dummy obtain_crypto_key() function in scripts/crypto-key-functions.
  - To be rewriten to use TPM on next milestone.
* Add firstboot logic in local-premount/resize.
* Add meta/force-kernel-extraction for upcoming system-boot kernel extraction snapd support.
  - Need to Track the pull request on next milestone: https://github.com/snapcore/snapd/pull/6616/
* Extract to /boot when restoring/installing system-boot partition.
* Modified snapcraft.yaml for updating TPM tss lib 2.2.2
* Create verbose logs for updated initramfs contents.
* For cryptsetup, use -s 512 for an effective key size of 256 bits as with XTS the effective key size is only half.
* Put the action of relabeling old "writable" to "restore" as the last step to improve fail-safe experience and refactor the factory-reset process.
* Add more comments, shebang and license headers.

* Note - this work is based on initramfs scripts from earlier projects:
  * Tillamook - https://git.launchpad.net/~tillamook-team/tillamook/+git/linux/tree/cascade/initrd/scripts
  * Vienna - https://git.launchpad.net/~vienna-team/vienna/+git/vienna-kernel/tree/initrd/initrd/scripts?h=snapdragon

8071f9d... by Tim Chen

Make a consistent indent with 'shfmt -i 4' for the scripts

81d899b... by Tim Chen

Initial FDE initramfs implementation

The changes include the fortknox-kernel (badger) alpha delivering.
For the alpha milestone we will deliver:

* A working UC16 gadget and kernel snap
* The LUKS/FDE solution with a dummy key passphrase 'ubuntu' and without TPM.
* Include cryptsetup and TPM tools/libs in initramfs

Changes:

* Modified install-firstboot-from-initrd hook for needed crypto kernel modules.
* Add crypto-functions and partitioning logic in scripts/crypto-functions for cryptsetup/LUKS encrpytion.
* Add dummy obtain_crypto_key() function in scripts/crypto-key-functions.
  - To be rewriten to use TPM on next milestone.
* Add firstboot logic in local-premount/resize.
* Add meta/force-kernel-extraction for upcoming system-boot kernel extraction snapd support.
  - Need to Track the pull request on next milestone: https://github.com/snapcore/snapd/pull/6616/
* Extract to /boot when restoring/installing system-boot partition.
* Modified snapcraft.yaml for updating TPM tss lib 2.2.2
* Create verbose logs for updated initramfs contents.
* For cryptsetup, use -s 512 for an effective key size of 256 bits as with XTS the effective key size is only half.
* Put the action of relabeling old "writable" to "restore" as the last step to improve fail-safe experience and refactor the factory-reset process.
* Add more comments, shebang and license headers.

* Note - this work is based on initramfs scripts from earlier projects:
  * Tillamook - https://git.launchpad.net/~tillamook-team/tillamook/+git/linux/tree/cascade/initrd/scripts
  * Vienna - https://git.launchpad.net/~vienna-team/vienna/+git/vienna-kernel/tree/initrd/initrd/scripts?h=snapdragon

bf061d4... by Woodrow Shen

Revert to import snappy-dev/image/ubuntu PPA for build componenets

9dd070e... by Woodrow Shen

Fix the error of "No dirmngr" when apt-key imported key from keyserver

69a996a... by PMR <pmr@pmr-lander>

Merge #365338 from ~fortknox-team/fortknox/+git/fortknox-kernel:use-linux-bar

f0e1883... by Woodrow Shen

Use patch to replace Makefile