summarylogtreecommitdiffstats
path: root/sbsign-refind-initcpio-post-hook
blob: 9cc0ab7759279b902f636916d2be2afc357d8d03 (plain)
1
2
3
4
5
#! /bin/sh
sigs=$(sbverify --list "$1" 2>&1)
if [ "${sigs#*'No signature table present'}" != "$sigs" ]; then
        exec /usr/bin/sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output "$1" "$1"
fi