Updated install1

pull/2/head
beech 12 months ago
parent f9b503222a
commit 4d5bab3576
  1. 4
      README.md
  2. 14
      install1.sh

@ -15,10 +15,6 @@ Boot into your Arch ISO & run commands:
curl https://git.merlinslair.net/beech/ArchScripts/raw/branch/main/install1.sh -o install1.sh curl https://git.merlinslair.net/beech/ArchScripts/raw/branch/main/install1.sh -o install1.sh
sh install1.sh sh install1.sh
# Installer 2
curl https://git.merlinslair.net/beech/ArchScripts/raw/branch/main/install2.sh -o install2.sh
sh install2.sh
# Preparing for first boot # Preparing for first boot
exit exit
umount -R /mnt umount -R /mnt

@ -10,7 +10,12 @@ echo "-------------------------------------------------"
lsblk 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 DISK
if [[ ! -b $DISK ]]; then
echo "Error: Disk $DISK does not exist."
exit 1
fi
echo -e "\nFormatting disk...\n$HR" echo -e "\nFormatting disk...\n$HR"
@ -19,9 +24,10 @@ 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
read -r -p "Enter the root partition size (e.g., 35G): " ROOT_SIZE
sgdisk -n 1:0:1024M $DISK # partition 1 (boot) sgdisk -n 1:0:1024M $DISK # partition 1 (boot)
sgdisk -n 2:0:4G $DISK # partition 2 (SWAP - change to desired size) sgdisk -n 2:0:4G $DISK # partition 2 (SWAP - change to desired size)
sgdisk -n 3:0:35G $DISK # partition 3 (root - change to desired size) sgdisk -n 3:0:$ROOT_SIZE $DISK # partition 3 (root)
sgdisk -n 4:0:0 $DISK # partition 4 (home, remaining space) sgdisk -n 4:0:0 $DISK # partition 4 (home, remaining space)
# set partition types # set partition types
@ -56,6 +62,8 @@ mkdir /mnt/home
mount ${DISK}1 /mnt/boot mount ${DISK}1 /mnt/boot
mount ${DISK}4 /mnt/home mount ${DISK}4 /mnt/home
cp install2.sh /mnt/
# set download mirrors # set download mirrors
echo "-------------------------------------------------" echo "-------------------------------------------------"
echo "Enabling Parallel Downloads" echo "Enabling Parallel Downloads"
@ -88,4 +96,4 @@ echo "Finished install script 1. Run install2.sh"
echo "-------------------------------------------------" echo "-------------------------------------------------"
# chroot # chroot
arch-chroot /mnt arch-chroot /mnt && ./install2.sh