2012-08-03 02:03:14 +00:00
|
|
|
#!/bin/bash -e
|
2017-10-19 00:01:21 +00:00
|
|
|
##
|
|
|
|
# The original warning is gone because we now do multiple signatures
|
|
|
|
# instead check that the second signature is added
|
|
|
|
##
|
2012-08-03 02:03:14 +00:00
|
|
|
|
|
|
|
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 |
|
2017-10-19 00:01:21 +00:00
|
|
|
grep '^Image was already signed; adding additional signature'
|