diff options
author | Daniel Drake <dsd@laptop.org> | 2010-08-31 21:10:18 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2010-08-31 21:10:18 (GMT) |
commit | 6c8604c90304c6c79cc4d64b4c12b5b12b97d1a9 (patch) | |
tree | 2d86abebafc3e3fdb19cc0d2c9136fb18823b179 /modules/signing/preimage.40.sign-os.sh | |
parent | 54243b0da8058cd89f3cf618b91756579ed14058 (diff) |
signing: Support separate run/activation initramfs (#10339)
Diffstat (limited to 'modules/signing/preimage.40.sign-os.sh')
-rw-r--r-- | modules/signing/preimage.40.sign-os.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/signing/preimage.40.sign-os.sh b/modules/signing/preimage.40.sign-os.sh index 0e00ea0..857bdb2 100644 --- a/modules/signing/preimage.40.sign-os.sh +++ b/modules/signing/preimage.40.sign-os.sh @@ -21,6 +21,16 @@ if [ -e "$fsmount/boot/initrd.img" ]; then pushd $bios_crypto/build $bios_crypto/build/sign-os.sh $okey $fsmount/boot/initrd.img $fsmount/boot/runrd.zip popd - [ -e $fsmount/boot/actrd.zip ] || ln -s runrd.zip $fsmount/boot/actrd.zip fi +if [ -e "$fsmount/boot/actrd.img" ]; then + echo "Signing activation initramfs..." + pushd $bios_crypto/build + $bios_crypto/build/sign-os.sh $okey $fsmount/boot/actrd.img $fsmount/boot/actrd.zip + popd +fi + +# If no separate activation initramfs was provided, assume that the regular +# initramfs also handles activation. +[ -e $fsmount/boot/actrd.zip ] || ln -s runrd.zip $fsmount/boot/actrd.zip + |