fix: sbctl not in archiso

This commit is contained in:
ange 2025-10-03 10:31:25 +00:00
parent b0add9b2cd
commit f46871a28a
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D

View file

@ -1,11 +1,13 @@
#!/bin/bash
pacman -Sy sbctl --noconfirm
if ! sbctl status | grep -q '^Setup Mode:.*Enabled$'; then
printf '%s\n' \
'If you want Secure Boot support, you need to put your system in Setup Mode' \
'See https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot'
read -rp "Reboot into the firmware setup interface? [Y/n] " ANS
if ! [[ "${ANS,}" =~ ^$|^y ]]; then
if [[ "${ANS,}" =~ ^$|^y ]]; then
systemctl reboot --firmware-setup
fi
fi