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"
|
|
|
|
|
|
|
|
"$sbsign" --cert "$cert" --key "$key" --output "$signed" "$image"
|
|
|
|
"$sbsign" --cert "$cert" --key "$key" --output "$signed" "$signed" 2>&1 |
|
2017-10-19 00:01:21 +00:00
|
|
|
grep '^Image was already signed; adding additional signature'
|