Message ID | 20230405074756.600213-1-srinuvasan_a@mentor.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [isar-cip-core] make script report all potential errors | expand |
On 05.04.23 09:47, Srinuvasan Arjunan wrote: > From: Srinuvasan A <srinuvasan_a@mentor.com> > > Let us try and make sure that all bits we have are executed as expected. > > Signed-off-by: Srinuvasan A <srinuvasan_a@mentor.com> > --- > scripts/generate-sb-db-from-existing-certificate.sh | 3 +++ > scripts/generate_secure_boot_keys.sh | 3 +++ > scripts/start-efishell.sh | 3 +++ > 3 files changed, 9 insertions(+) > > diff --git a/scripts/generate-sb-db-from-existing-certificate.sh b/scripts/generate-sb-db-from-existing-certificate.sh > index 035f189..ddaf4c9 100755 > --- a/scripts/generate-sb-db-from-existing-certificate.sh > +++ b/scripts/generate-sb-db-from-existing-certificate.sh > @@ -1,4 +1,7 @@ > #!/bin/sh > + > +set -e > + > name=${SB_NAME:-snakeoil} > keydir=${SB_KEYDIR:-./keys} > if [ ! -d ${keydir} ]; then > diff --git a/scripts/generate_secure_boot_keys.sh b/scripts/generate_secure_boot_keys.sh > index 8d3f8c0..4988a68 100755 > --- a/scripts/generate_secure_boot_keys.sh > +++ b/scripts/generate_secure_boot_keys.sh > @@ -1,4 +1,7 @@ > #!/bin/sh > + > +set -e > + > name=${SB_NAME:-demo} > keydir=${SB_KEYDIR:-./keys} > if [ ! -d ${keydir} ]; then > diff --git a/scripts/start-efishell.sh b/scripts/start-efishell.sh > index 980b9cc..cc8dc58 100755 > --- a/scripts/start-efishell.sh > +++ b/scripts/start-efishell.sh > @@ -1,4 +1,7 @@ > #!/bin/sh > + > +set -e > + > ovmf_code=${OVMF_CODE:-/usr/share/OVMF/OVMF_CODE_4M.secboot.fd} > ovmf_vars=${OVMF_VARS:-./OVMF_VARS_4M.fd} > DISK=$1 Thanks, applied. Jan
diff --git a/scripts/generate-sb-db-from-existing-certificate.sh b/scripts/generate-sb-db-from-existing-certificate.sh index 035f189..ddaf4c9 100755 --- a/scripts/generate-sb-db-from-existing-certificate.sh +++ b/scripts/generate-sb-db-from-existing-certificate.sh @@ -1,4 +1,7 @@ #!/bin/sh + +set -e + name=${SB_NAME:-snakeoil} keydir=${SB_KEYDIR:-./keys} if [ ! -d ${keydir} ]; then diff --git a/scripts/generate_secure_boot_keys.sh b/scripts/generate_secure_boot_keys.sh index 8d3f8c0..4988a68 100755 --- a/scripts/generate_secure_boot_keys.sh +++ b/scripts/generate_secure_boot_keys.sh @@ -1,4 +1,7 @@ #!/bin/sh + +set -e + name=${SB_NAME:-demo} keydir=${SB_KEYDIR:-./keys} if [ ! -d ${keydir} ]; then diff --git a/scripts/start-efishell.sh b/scripts/start-efishell.sh index 980b9cc..cc8dc58 100755 --- a/scripts/start-efishell.sh +++ b/scripts/start-efishell.sh @@ -1,4 +1,7 @@ #!/bin/sh + +set -e + ovmf_code=${OVMF_CODE:-/usr/share/OVMF/OVMF_CODE_4M.secboot.fd} ovmf_vars=${OVMF_VARS:-./OVMF_VARS_4M.fd} DISK=$1