From 50c4834032bdd7e8fb90d0c4cfc640abf3a89cb5 Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Sun, 12 May 2024 22:27:05 -0500 Subject: [PATCH] Fixed syntax issue and added archlinux-keyring install & configure --- bare-arch-install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bare-arch-install.sh b/bare-arch-install.sh index f578385..f2ba09d 100755 --- a/bare-arch-install.sh +++ b/bare-arch-install.sh @@ -121,9 +121,8 @@ get_disks DISKS get_choice "Which disk are you wanting to use? : " DISK "${DISKS[@]}" # If the disk is a nvme drive -if [[ "$DISK" =~ ^/dev/nvmen[0-9]$ ]] +if [[ "$DISK" =~ ^/dev/nvmen[0-9]$ ]]; then DISK_BASE=${DISK}p - else DISK_BASE="${DISK}" fi @@ -398,6 +397,9 @@ usermod -aG wheel $NEW_USER echo '%wheel ALL=(ALL:ALL) ALL' > /etc/sudoers.d/wheel " +pacman -Sy archlinux-keyring +pacman-key --init +pacman-key --populate archlinux arch-chroot /mnt /bin/bash <<< "$INSTALL_SYSTEM" # END: Work