1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-21 17:11:34 -05:00

Compare commits

...

3 Commits

Author SHA1 Message Date
bd0855ef19
Remove incorrect output
Signed-off-by: Tommy <contact@tommytran.io>
2024-10-25 07:44:49 -07:00
7a50c4e548
Typo fix + set e 2024-10-25 05:48:19 -07:00
d8bf30e46b
Move sbctl to post install 2024-10-25 05:28:24 -07:00
2 changed files with 6 additions and 9 deletions

View File

@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -u set -eu
output(){ output(){
printf '\e[1;34m%-6s\e[m\n' "${@}" printf '\e[1;34m%-6s\e[m\n' "${@}"
@ -335,10 +335,7 @@ mount -o nodev,nosuid,noexec "${ESP}" /mnt/boot/efi
## Pacstrap ## Pacstrap
output 'Installing the base system (it may take a while).' output 'Installing the base system (it may take a while).'
output "You may see an error when mkinitcpio tries to generate a new initramfs." pacstrap /mnt apparmor base chrony efibootmgr firewalld grub grub-btrfs inotify-tools linux-firmware linux-hardened linux-lts nano reflector snapper sudo zram-generator
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
if [ "${virtualization}" = 'none' ]; then if [ "${virtualization}" = 'none' ]; then
CPU=$(grep vendor_id /proc/cpuinfo) CPU=$(grep vendor_id /proc/cpuinfo)
@ -546,10 +543,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 # Generating a new initramfs
chmod 600 /boot/initramfs-linux* chmod 600 /boot/initramfs-linux*
mkinitcpio -P mkinitcpio -P

View File

@ -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