1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-12-26 08:41:58 -05:00

Move sbctl to post install

This commit is contained in:
Tommy 2024-10-25 05:28:24 -07:00 committed by GitHub
parent 3821fe08f3
commit d8bf30e46b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 9 deletions

View File

@ -338,7 +338,7 @@ output 'Installing the base system (it may take a while).'
output "You may see an error when mkinitcpio tries to generate a new initramfs."
output "It is okay. The script will regenerate the initramfs later in the installation process."
pacstrap /mnt apparmor base chrony efibootmgr firewalld grub grub-btrfs inotify-tools linux-firmware linux-hardened linux-lts nano reflector sbctl snapper sudo zram-generator
pacstrap /mnt apparmor base chrony efibootmgr firewalld grub grub-btrfs inotify-tools linux-firmware linux-hardened linux-lts nano reflector snapper sudo zram-generator
if [ "${virtualization}" = 'none' ]; then
CPU=$(grep vendor_id /proc/cpuinfo)
@ -546,14 +546,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
# Generating locales
locale-gen
# Create SecureBoot keys
# This isn't strictly necessary, but linux-hardened preset expects it and mkinitcpio will fail without it
sbctl create-keys
# Generating a new initramfs
chmod 600 /boot/initramfs-linux*
mkinitcpio -P
# Installing GRUB
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock

View File

@ -15,6 +15,10 @@
set -eu
sudo pacman -S --noconfirm sbctl
sudo sbctl create-keys
sudo mkinitcpio -P
# Install new grub version
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock