mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Update install.sh
This commit is contained in:
parent
a1beec96af
commit
0622599486
1 changed files with 4 additions and 4 deletions
|
@ -35,28 +35,28 @@ echo 19 # Change last partition to Swap.
|
||||||
echo w # write changes.
|
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
|
||||||
# Set variables
|
# Set variables
|
||||||
efiName=${driveName}p1
|
efiName=${driveName}p1
|
||||||
rootName=${driveName}p2
|
rootName=${driveName}p2
|
||||||
swapName=${driveName}p3
|
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
|
||||||
# Set variables
|
# Set variables
|
||||||
efiName=${driveName}1
|
efiName=${driveName}1
|
||||||
rootName=${driveName}2
|
rootName=${driveName}2
|
||||||
swapName=${driveName}3
|
swapName=${driveName}3
|
||||||
|
|
||||||
# Check if the device is a Virtual drive
|
# Check if the device is a Virtual drive
|
||||||
elif [ $driveName == /dev/vd* ]; then
|
elif [ $driveName = /dev/vd* ]; then
|
||||||
# Set variables
|
# Set variables
|
||||||
efiName="{$driveName}1"
|
efiName="{$driveName}1"
|
||||||
rootName="{$driveName}2"
|
rootName="{$driveName}2"
|
||||||
swapName="{$driveName}3"
|
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
|
||||||
# Set variables
|
# Set variables
|
||||||
efiName=${driveName}1
|
efiName=${driveName}1
|
||||||
rootName=${driveName}2
|
rootName=${driveName}2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue