Generate secureboot keys in arch-chroot

This commit is contained in:
Tommy 2024-06-06 13:01:03 -07:00 committed by GitHub
parent 68ae9f69b7
commit d246fd5f0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,6 +411,10 @@ arch-chroot /mnt /bin/bash -e <<EOF
# Generating locales. # Generating locales.
locale-gen &>/dev/null locale-gen &>/dev/null
# Create SecureBoot keys.
# This isn't strictly necessary, linux-hardened preset expects it and mkinitcpio will fail without it.
sbctl create-keys
# Generating a new initramfs. # Generating a new initramfs.
mkinitcpio -P &>/dev/null mkinitcpio -P &>/dev/null