Fix: Fixed a bug that would cause secure-boot signing to fail, as per @ u/UnLeashDemon feedback.

This commit is contained in:
Jane Doe 2025-01-10 15:18:54 +00:00
parent d938a2b98c
commit c84b8b24d0

View file

@ -2,7 +2,7 @@
# Amelia Installer
# https://gitlab.com/prism7/archery
# Version: 8.3.8
# Version: 8.3.9
set -euo pipefail
###################################################################################################
@ -5813,6 +5813,7 @@ secboot_sign() {
if [[ ${bootloader} == "1" ]]; then
if arch-chroot /mnt <<-SECSIGN > /dev/null 2>&1 2> amelia_log.txt ; then
systemctl disable systemd-boot-update || exit
pacman -Sy || exit
pacman -S --noconfirm sbctl || exit
sbctl create-keys || exit
sbctl enroll-keys -m || exit
@ -5828,6 +5829,7 @@ SECSIGN
fi
elif [[ ${bootloader} == "2" ]]; then
if arch-chroot /mnt <<-SECSIGN > /dev/null 2>&1 2> amelia_log.txt ; then
pacman -Sy || exit
pacman -S --noconfirm sbctl || exit
sbctl create-keys || exit
sbctl enroll-keys -m || exit