mirror of
https://github.com/outbackdingo/incus-os.git
synced 2026-01-27 10:19:24 +00:00
scripts: Inject der version of the keys
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
@@ -23,7 +23,15 @@ fi
|
||||
mkdir -p certs/mnt/
|
||||
LOOP=$(losetup --show -f -P "$1")
|
||||
mount "${LOOP}p1" certs/mnt/
|
||||
|
||||
# Push the new enrollment keys.
|
||||
rm certs/mnt/loader/keys/auto/*
|
||||
cp certs/efi/*.auth certs/mnt/loader/keys/auto/
|
||||
|
||||
# Push the keys as DER.
|
||||
rm certs/mnt/mkosi.der || true
|
||||
mkdir -p certs/mnt/keys/
|
||||
cp certs/efi/*.der certs/mnt/keys/ || true
|
||||
|
||||
umount certs/mnt/
|
||||
losetup -d "${LOOP}"
|
||||
|
||||
Reference in New Issue
Block a user