2012-08-03 10:03:14 +08:00
|
|
|
#!/bin/bash -e
|
2017-10-18 17:01:21 -07:00
|
|
|
##
|
|
|
|
# The original warning is gone because we now do multiple signatures
|
|
|
|
# instead check that the second signature is added
|
|
|
|
##
|
2012-08-03 10:03:14 +08:00
|
|
|
|
|
|
|
signed="test.signed"
|
|
|
|
|
|
|
|
"$sbsign" --cert "$cert" --key "$key" --output "$signed" "$image"
|
|
|
|
"$sbsign" --cert "$cert" --key "$key" --output "$signed" "$signed" 2>&1 |
|
2017-10-18 17:01:21 -07:00
|
|
|
grep '^Image was already signed; adding additional signature'
|