mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-23 01:51:33 -05:00
Move sbctl to post install
This commit is contained in:
parent
3821fe08f3
commit
d8bf30e46b
10
install.sh
10
install.sh
@ -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 "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."
|
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
|
if [ "${virtualization}" = 'none' ]; then
|
||||||
CPU=$(grep vendor_id /proc/cpuinfo)
|
CPU=$(grep vendor_id /proc/cpuinfo)
|
||||||
@ -546,14 +546,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
|||||||
# Generating locales
|
# Generating locales
|
||||||
locale-gen
|
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
|
# Installing GRUB
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
||||||
|
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
sudo pacman -S --noconfirm sbctl
|
||||||
|
sudo sbctl create-keys
|
||||||
|
sudo mkinitcpio -P
|
||||||
|
|
||||||
# Install new grub version
|
# Install new grub version
|
||||||
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user