mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 01:21:34 -05:00
Update
This commit is contained in:
parent
3eaf3b0cc6
commit
c88ba25eb8
@ -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."
|
||||||
|
Loading…
Reference in New Issue
Block a user