36e79114d2
sbattach --detach isn't working, as we're not properly setting sigbuf in image_pecoff parse. This change ensures we populate sigbuf when we find a valid cert table. Also, add a test case for this. Bug report & initial patch from from Steve Langasek. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
10 lines
232 B
Bash
Executable file
10 lines
232 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
. "$srcdir/common.sh"
|
|
|
|
signed="test.signed"
|
|
sig="test.sig"
|
|
|
|
"$sbsign" --cert "$cert" --key "$key" --output "$signed" "$image"
|
|
"$sbattach" --detach "$sig" "$signed"
|
|
"$sbverify" --cert "$cert" --detached $sig "$image"
|