fix: sbctl not in archiso
This commit is contained in:
parent
b0add9b2cd
commit
f46871a28a
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue