Update install.sh

This commit is contained in:
Aaron Honeycutt 2023-04-17 20:05:28 +00:00
parent 66e9be884a
commit d987e56383

View file

@ -2,6 +2,9 @@
# then sets it as a variable for hibernation support # then sets it as a variable for hibernation support
ramTotal=$(free -h | awk '/^Mem:/{print $2}'| awk -FG {'print$1'}) ramTotal=$(free -h | awk '/^Mem:/{print $2}'| awk -FG {'print$1'})
# Set append for drive automation
APPEND=""
# Detect and list the drives. # Detect and list the drives.
lsblk -f lsblk -f
@ -38,18 +41,16 @@ echo w # write changes.
# List the new partitions. # List the new partitions.
lsblk -f lsblk -f
echo "----------" if [[ "$driveName" == "/dev/nvme"* || "$driveName" == "/dev/mmcblk0"* ]]; then
echo "" APPEND="p"
echo "Which is the EFI partition?" fi
read efiName
echo "" efiName=${driveName}$APPEND
echo "Which is the root partition?" efiName+=1
read rootName rootName=${driveName}$APPEND
rootName+=2
echo "" swapName=${driveName}$APPEND
echo "Which is the swap partition?" swapName+=3
read swapName
# Create EFI partition # Create EFI partition
sudo mkfs.fat -F32 -n EFI $efiName sudo mkfs.fat -F32 -n EFI $efiName