Update install.sh

This commit is contained in:
Aaron Honeycutt 2023-04-17 18:38:43 +00:00
parent 6f4ae4be9d
commit 2596d54e28

View file

@ -36,18 +36,31 @@ echo w # write changes.
) | sudo fdisk $driveName -w always -W always ) | sudo fdisk $driveName -w always -W always
if [ $driveName == /dev/nvme* ]; then if [ $driveName == /dev/nvme* ]; then
# Format the NVMe drive with the ext4 filesystem # Set variables
mkfs.ext4 $DEVICE_PATH efiName="${driveName}p1"
rootName="${driveName}p2"
swapName="${driveName}p3"
# Check if the device is a SATA drive # Check if the device is a SATA drive
elif [ $driveName == /dev/sd* ]; then elif [ $driveName == /dev/sd* ]; then
# Format the SATA drive with the NTFS filesystem # Set variables
mkfs.ntfs $DEVICE_PATH efiName="${driveName}1"
rootName="${driveName}2"
swapName="${driveName}3"
# Check if the device is a Virtual drive
elif [ $driveName == /dev/vd* ]; then
# Set variables
efiName="${driveName}1"
rootName="${driveName}2"
swapName="${driveName}3"
# Check if the device is an eMMC drive # Check if the device is an eMMC drive
elif [ $driveName == /dev/mmcblk* ]; then elif [ $driveName == /dev/mmcblk* ]; then
# Format the eMMC drive with the FAT32 filesystem # Set variables
mkfs.fat -F 32 $DEVICE_PATH efiName="${driveName}1"
rootName="${driveName}2"
swapName="${driveName}3"
fi fi