This commit is contained in:
Chris Titus 2021-10-30 10:20:33 -07:00 committed by 71Zombie
parent 5967e4a6f3
commit bcceaf33e0
3 changed files with 17 additions and 16 deletions

View File

@ -57,16 +57,6 @@ sgdisk -Z ${DISK} # zap all on disk
sgdisk -a 2048 -o ${DISK} # new gpt disk 2048 alignment sgdisk -a 2048 -o ${DISK} # new gpt disk 2048 alignment
# create partitions # create partitions
sgdisk -n 1:0:+100M ${DISK} # partition 1 (UEFI SYS), default start block, 512MB
sgdisk -n 2:0:0 ${DISK} # partition 2 (Root), default start, remaining
# set partition types
sgdisk -t 1:ef00 ${DISK}
sgdisk -t 2:8300 ${DISK}
# label partitions
sgdisk -c 1:"UEFISYS" ${DISK}
sgdisk -c 2:"ROOT" ${DISK}
sgdisk -n 1::+1M --typecode=1:ef02 --change-name=1:'BIOSBOOT' ${DISK} # partition 1 (BIOS Boot Partition) sgdisk -n 1::+1M --typecode=1:ef02 --change-name=1:'BIOSBOOT' ${DISK} # partition 1 (BIOS Boot Partition)
sgdisk -n 2::+100M --typecode=2:ef00 --change-name=2:'EFIBOOT' ${DISK} # partition 2 (UEFI Boot Partition) sgdisk -n 2::+100M --typecode=2:ef00 --change-name=2:'EFIBOOT' ${DISK} # partition 2 (UEFI Boot Partition)
sgdisk -n 3::-0 --typecode=3:8300 --change-name=3:'ROOT' ${DISK} # partition 3 (Root), default start, remaining sgdisk -n 3::-0 --typecode=3:8300 --change-name=3:'ROOT' ${DISK} # partition 3 (Root), default start, remaining
@ -114,11 +104,17 @@ fi
echo "--------------------------------------" echo "--------------------------------------"
echo "-- Arch Install on Main Drive --" echo "-- Arch Install on Main Drive --"
echo "--------------------------------------" echo "--------------------------------------"
pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyring wget libnewt --noconfirm --needed pacstrap /mnt base base-devel linux-hardened linux-firmware vim nano sudo archlinux-keyring wget libnewt --noconfirm --needed
genfstab -U /mnt >> /mnt/etc/fstab genfstab -U /mnt >> /mnt/etc/fstab
echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf
cp -R ${SCRIPT_DIR} /mnt/root/BetterArch cp -R ${SCRIPT_DIR} /mnt/root/BetterArch
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
echo "--------------------------------------"
echo "--GRUB BIOS Bootloader Install&Check--"
echo "--------------------------------------"
if [[ ! -d "/sys/firmware/efi" ]]; then
grub-install --boot-directory=/mnt/boot ${DISK}
fi
echo "--------------------------------------" echo "--------------------------------------"
echo "-- GRUB Bootloader Installation --" echo "-- GRUB Bootloader Installation --"

View File

@ -130,11 +130,10 @@ PKGS=(
'kate' 'kate'
'kcodecs' 'kcodecs'
'kcoreaddons' 'kcoreaddons'
'kde-plasma-addons' 'kdeplasma-addons'
'kinfocenter'
'kscreen'
'kvantum-qt5'
'kde-gtk-config' 'kde-gtk-config'
'kinfocenter'
'kvantum-qt5'
'kitty' 'kitty'
'konsole' 'konsole'
'kscreen' 'kscreen'
@ -167,6 +166,7 @@ PKGS=(
'patch' 'patch'
'picom' 'picom'
'pkgconf' 'pkgconf'
'plasma-meta'
'plasma-nm' 'plasma-nm'
'powerdevil' 'powerdevil'
'plasma-nm' 'plasma-nm'

View File

@ -12,8 +12,13 @@
#------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------
echo -e "\nFINAL SETUP AND CONFIGURATION" echo -e "\nFINAL SETUP AND CONFIGURATION"
echo "--------------------------------------"
echo "-- GRUB EFI Bootloader Install&Check--"
echo "--------------------------------------"
if [[ -d "/sys/firmware/efi" ]]; then
grub-install --efi-directory=/boot ${DISK}
fi
grub-mkconfig -o /boot/grub/grub.cfg grub-mkconfig -o /boot/grub/grub.cfg
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------
echo -e "\nEnabling Login Display Manager" echo -e "\nEnabling Login Display Manager"