1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-22 01:21:34 -05:00
This commit is contained in:
TommyTran732 2021-08-16 19:36:24 -04:00 committed by tommytran732
parent 3eaf3b0cc6
commit c88ba25eb8
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -34,8 +34,7 @@ kernel_selector () {
# Checking the microcode to install. # Checking the microcode to install.
CPU=$(grep vendor_id /proc/cpuinfo) CPU=$(grep vendor_id /proc/cpuinfo)
if [[ $CPU == *"AuthenticAMD"* ]] if [[ $CPU == *"AuthenticAMD"* ]]; then
then
microcode=amd-ucode microcode=amd-ucode
else else
microcode=intel-ucode microcode=intel-ucode
@ -53,8 +52,7 @@ done
# Deleting old partition scheme. # Deleting old partition scheme.
read -r -p "This will delete the current partition table on $DISK. Do you agree [y/N]? " response read -r -p "This will delete the current partition table on $DISK. Do you agree [y/N]? " response
response=${response,,} response=${response,,}
if [[ "$response" =~ ^(yes|y)$ ]] if [[ "$response" =~ ^(yes|y)$ ]]; then
then
wipefs -af "$DISK" &>/dev/null wipefs -af "$DISK" &>/dev/null
sgdisk -Zo "$DISK" &>/dev/null sgdisk -Zo "$DISK" &>/dev/null
else else
@ -172,7 +170,7 @@ kernel_selector
# Pacstrap (setting up a base sytem onto the new root). # Pacstrap (setting up a base sytem onto the new root).
echo "Installing the base system (it may take a while)." echo "Installing the base system (it may take a while)."
pacstrap /mnt base ${kernel} ${microcode} linux-firmware grub grub-btrfs snapper efibootmgr sudo networkmanager apparmor nano gdm gnome-control-center gnome-terminal gnome-software gnome-software-packagekit-plugin gnome-tweaks nautilus pipewire-pulse pipewire-alsa pipewire-jack flatpak firewalld adobe-source-han-sans-otc-fonts adobe-source-han-serif-otc-fonts reflector snap-pac pacstrap /mnt base ${kernel} ${microcode} linux-firmware grub grub-btrfs snapper efibootmgr sudo networkmanager apparmor nano gdm gnome-control-center gnome-terminal gnome-software gnome-software-packagekit-plugin gnome-tweaks nautilus pipewire-pulse pipewire-alsa pipewire-jack flatpak firewalld adobe-source-han-sans-otc-fonts adobe-source-han-serif-otc-fonts reflector snap-pac mlocate man-db
# Generating /etc/fstab. # Generating /etc/fstab.
echo "Generating a new fstab." echo "Generating a new fstab."