Skip to content

Commit 5aa39c9

Browse files
authored
Simple check to prevent secure boot issues (#2145)
1 parent 5da10be commit 5aa39c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/preflight/guard.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ done
1818
# Must be x86 only to fully work
1919
[ "$(uname -m)" != "x86_64" ] && abort "x86_64 CPU"
2020

21+
# Must have secure boot disabled
22+
bootctl status 2>/dev/null | grep -q 'Secure Boot: disabled' || abort "Secure Boot disabled"
23+
2124
# Must not have Gnome or KDE already install
2225
pacman -Qe gnome-shell &>/dev/null && abort "Fresh + Vanilla Arch"
2326
pacman -Qe plasma-desktop &>/dev/null && abort "Fresh + Vanilla Arch"

0 commit comments

Comments
 (0)