Skip to content

Commit

Permalink
support uki
Browse files Browse the repository at this point in the history
  • Loading branch information
kirankn8 committed Apr 23, 2024
1 parent 5b21240 commit 0a87fd1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions stylus_uki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#cloud-config
stages:
after-install:
- name: Run copy pub key after install commands
if: '[ -e "/run/cos/uki_install_mode" ]'
commands:
- echo "Copying public key to persistent path"
- umount /oem || true
- cryptsetup close /dev/mapper/oem
- /usr/lib/systemd/systemd-cryptsetup attach oem $(findfs PARTLABEL=oem) - tpm2-device=auto
- mount /dev/mapper/oem /oem
- cp /run/initramfs/live/.signing-public-key /oem/.signing-public-key
- umount /dev/mapper/oem
- cryptsetup close /dev/mapper/oem

0 comments on commit 0a87fd1

Please sign in to comment.