Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/signing/preimage.50.addsignedcontent.sh
blob: f3106c28c8d4dd70522912771a06aa087c029515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (C) 2009 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.

. $OOB__shlib
shopt -s nullglob
content=$(read_config signing add_signed_content)
[ -n "$content" ] || exit 0

echo "Adding signed content..."
# unpack zip file output from the signing laptop and insert into image
signdir=$intermediatesdir/signed-content
rm -rf $signdir
mkdir -p $signdir
unzip $content -d $signdir

pushd $signdir
for sfile in bootfw*.zip runos*.zip runrd*.zip actos*.zip actrd*.zip; do
	cp --remove-destination $sfile $fsmount/boot/$sfile
done
popd

rm -rf $signdir