We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3062096 + 47d6786 commit 8e8627cCopy full SHA for 8e8627c
files/common/var/lib/delphix-sb-enroll/sb-enroll-efivars.sh
@@ -9,10 +9,6 @@ die() {
9
exit 1
10
}
11
12
-# Do nothing if Secure Boot is already enabled.
13
-sb=$(od -An -t u1 /sys/firmware/efi/efivars/SecureBoot-* | awk '{print $NF}')
14
-[[ $sb -eq 1 ]] && exit 0
15
-
16
#
17
# Run only on AWS.
18
@@ -27,6 +23,10 @@ fi
27
23
28
24
[[ -d /sys/firmware/efi/efivars ]] || die "Not booted in UEFI mode (/sys/firmware/efi/efivars missing)."
29
25
26
+# Do nothing if Secure Boot is already enabled.
+sb=$(od -An -t u1 /sys/firmware/efi/efivars/SecureBoot-* | awk '{print $NF}')
+[[ $sb -eq 1 ]] && exit 0
+
30
# Ensure efivars is mounted (usually is on Ubuntu)
31
if ! mountpoint -q /sys/firmware/efi/efivars; then
32
log "Mounting efivarfs..."
0 commit comments