diff options
author | Daniel Drake <dsd@laptop.org> | 2012-10-02 16:31:43 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2012-10-02 16:31:43 (GMT) |
commit | ab3d3f992d8271fb6608e815f28611a0ab088343 (patch) | |
tree | 2e2c5b902383849f20a1608382cbe97f147b2b6a /modules/signing/preimage.40.sign-os.sh | |
parent | c7425d50162106b2de997d71ec3b8bba65c03a15 (diff) |
Generate firmware zip files with model-suffixed names (#12129)
The XO-4 at the present time requires model-suffixes zip file names
e.g. runos4.zip.
This also seems to make sense in the general case, and is implemented
here as being fully backwards-compatible with firmware that don't
support it.
Diffstat (limited to 'modules/signing/preimage.40.sign-os.sh')
-rw-r--r-- | modules/signing/preimage.40.sign-os.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/signing/preimage.40.sign-os.sh b/modules/signing/preimage.40.sign-os.sh index 6756eb6..0adba39 100644 --- a/modules/signing/preimage.40.sign-os.sh +++ b/modules/signing/preimage.40.sign-os.sh @@ -9,8 +9,8 @@ bios_crypto=$(read_config signing bios_crypto_path) [ -n "$bios_crypto" -a -d "$bios_crypto" ] || exit 0 sign_os() { - local path="$fsmount"/boot/$1.zip - [ -f "$path" ] || return + local path=$(find ${fsmount}/boot -type f -name "${1}*.zip" -print -quit) + [ -z "$path" ] && return pushd $bios_crypto/build unzip "$path" |