pull/1/head
beech 2 years ago
parent 278e194258
commit d3c67c2ae2
  1. 19
      install1-ex.sh
  2. 5
      install2-ex.sh

@ -17,6 +17,7 @@ echo "-------------------------------------------------"
echo "Arch Install Script 1 - Drive Setup" echo "Arch Install Script 1 - Drive Setup"
echo "-------------------------------------------------" echo "-------------------------------------------------"
lsblk
echo "Specify drive name for install(ex. /dev/sda, /dev/nvme0n1). THIS WILL FORMAT & PARTITION THE SPECIFIED DRIVE!" echo "Specify drive name for install(ex. /dev/sda, /dev/nvme0n1). THIS WILL FORMAT & PARTITION THE SPECIFIED DRIVE!"
read -r -p "Enter the disk: " DISK read -r -p "Enter the disk: " DISK
@ -48,24 +49,22 @@ sgdisk -c 4:"home" $DISK
# make filesystems # make filesystems
echo -e "\nCreating Filesystems...\n$HR" echo -e "\nCreating Filesystems...\n$HR"
parted $DISK mklabel gpt mkfs.fat -F32 ${DISK}1 # FAT32 boot partition
mkfs.fat -F32 "$(DISK)1" # FAT32 boot partition mkswap ${DISK}2 # create SWAP
mkswap "$(DISK)2" # create SWAP swapon ${DISK}2 # enable SWAP
swapon "$(DISK)2" # enable SWAP mkfs.ext4 ${DISK}3
mkfs.ext4 "$(DISK)3" mkfs.ext4 ${DISK}4
mkfs.ext4 "$(DISK)4"
# mount partitions # mount partitions
echo "-------------------------------------------------" echo "-------------------------------------------------"
echo "Mounting Partitions" echo "Mounting Partitions"
echo "-------------------------------------------------" echo "-------------------------------------------------"
parted $DISK mklabel gpt mount ${DISK}3 /mnt
mount "$(DISK)3" /mnt
mkdir /mnt/boot mkdir /mnt/boot
mkdir /mnt/home mkdir /mnt/home
mount "$(DISK)1" /mnt/boot mount ${DISK}1 /mnt/boot
mount "$(DISK)4" /mnt/home mount ${DISK}4 /mnt/home
# install arch # install arch
echo "-------------------------------------------------" echo "-------------------------------------------------"

@ -3,9 +3,10 @@
# Create your user account following the README instructions before running this. # Create your user account following the README instructions before running this.
# Edit hostname on line 26 if desired # Edit hostname on line 26 if desired
lsblk
echo "Specify drive name that you entered in the first script." echo "Specify drive name that you entered in the first script."
read DISK read -r -p "Enter the disk: " DISK
echo "Create a root password (not your user password)." echo "Create a root password (not your user password)."
@ -61,7 +62,7 @@ echo "title Arch" > /boot/loader/entries/arch.conf
echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch.conf echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch.conf
echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf
echo "options root=PARTUUID=$(blkid -s PARTUUID -o value $(DISK)3) rw" >> /boot/loader/entries/arch.conf echo "options root=PARTUUID=$(blkid -s PARTUUID -o value ${DISK}3) rw" >> /boot/loader/entries/arch.conf
# install NetworkManager # install NetworkManager