blob: 0adba3940c4f77ec45ed3a3e5814d202954e8302 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright (C) 2010 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.
. $OOB__shlib
okey=$(read_config signing okey)
[[ -n "$okey" ]] || exit 0
bios_crypto=$(read_config signing bios_crypto_path)
[ -n "$bios_crypto" -a -d "$bios_crypto" ] || exit 0
sign_os() {
local path=$(find ${fsmount}/boot -type f -name "${1}*.zip" -print -quit)
[ -z "$path" ] && return
pushd $bios_crypto/build
unzip "$path"
mv data.img tmp.img
rm -f $path
./sign-os.sh $okey tmp.img $path
rm -f tmp.img
popd
}
echo "Signing initramfs/kernel..."
sign_os runos
sign_os actos
sign_os runrd
sign_os actrd
|