sign-iso: create .sig symlink
When we sign using an external signing server, make sure the .sig symlink gets created. Otherwise we get a timetsamped signature file, but no symlink: starlingx-intel-x86-64-20230511130720-cd.iso starlingx-intel-x86-64-20230511130720-cd.sig starlingx-intel-x86-64-cd.iso (symlink) starlingx-intel-x86-64-cd.sig (MISSING symlink) Story: 2010226 Task: 47974 TESTING ================= Re-run build-iso Jenkins job with external signing enabled. Make sure .sig symlink gets created. Signed-off-by: Davlet Panech <davlet.panech@windriver.com> Change-Id: I0aee44a72e2abe9469826e8a95e205addc8fad76
This commit is contained in:
parent
4ca6302a88
commit
e203534a0b
@ -38,7 +38,7 @@ sign_iso() {
|
||||
info "created signature $sig_file"
|
||||
fi
|
||||
)
|
||||
exit 0
|
||||
return 0
|
||||
fi
|
||||
|
||||
# ISO is already signed with developer keys - make sure .sig file exists
|
||||
@ -57,7 +57,7 @@ for iso_file in "${iso_files[@]}" ; do
|
||||
if [[ -L "$iso_file" ]] ; then
|
||||
iso_link_target="$(readlink "$iso_file")" || exit 1
|
||||
[[ -n "$iso_link_target" ]] || die "failed to read symlink $iso_file"
|
||||
[[ ! "$iso_link_target" =~ ^/ ]] || die "$iso_file: link target must not include slashes"
|
||||
[[ ! "$iso_link_target" =~ / ]] || die "$iso_file: link target must not include slashes"
|
||||
real_iso_file="$(dirname "$iso_file")/$iso_link_target"
|
||||
sign_iso "$real_iso_file"
|
||||
sig_file="${iso_file%.iso}.sig"
|
||||
|
Loading…
x
Reference in New Issue
Block a user