mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
40c34453df
Exception: scripts sourcing/calls within etc/ash_functions continues to use old TRACE functions until we switch to bash completely getting rid of ash. This would mean getting rid of legacy boards (flash + legacy boards which do not have enough space for bash in flash boards) once and for all. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
20 lines
783 B
Bash
Executable File
20 lines
783 B
Bash
Executable File
#!/bin/bash
|
|
set -e -o pipefail
|
|
. /etc/functions
|
|
|
|
TRACE_FUNC
|
|
|
|
# Post processing of keys
|
|
|
|
# Import user's keys
|
|
gpg --import /.gnupg/keys/*.key /.gnupg/keys/*.asc 2>/dev/null || true
|
|
|
|
# Import trusted distro keys allowed for ISO signing
|
|
gpg --homedir=/etc/distro/ --import /etc/distro/keys/* 2>/dev/null || true
|
|
#Set distro keys trust level to ultimate (trust anything that was signed with these keys)
|
|
gpg --homedir=/etc/distro/ --list-keys --fingerprint --with-colons|sed -E -n -e 's/^fpr:::::::::([0-9A-F]+):$/\1:6:/p' |gpg --homedir=/etc/distro/ --import-ownertrust 2>/dev/null || true
|
|
gpg --homedir=/etc/distro/ --update-trust 2>/dev/null || true
|
|
|
|
# Add user's keys to the list of trusted keys for ISO signing
|
|
gpg --export | gpg --homedir=/etc/distro/ --import 2>/dev/null || true
|