d27647ba69
Rather than setting ->sigbuf directly, add two functions to handle image signature addition and removal: image_add_signature(image, sig, sigsize); image_remove_signature(image); And warn when a signature is to be overwritten. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
12 lines
285 B
Bash
Executable file
12 lines
285 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
. "$srcdir/common.sh"
|
|
|
|
signed="test.signed"
|
|
sig="test.sig"
|
|
|
|
"$sbsign" --cert "$cert" --key "$key" --detached --output "$sig" "$image"
|
|
cp "$image" "$signed"
|
|
"$sbattach" --attach "$sig" "$signed"
|
|
"$sbattach" --attach "$sig" "$signed" 2>&1 |
|
|
grep '^warning: overwriting'
|