Add support for NVMe naming scheme.
This commit is contained in:
parent
614c9d0661
commit
2f9c68216c
12
install.sh
12
install.sh
|
@ -164,7 +164,12 @@ lsblk | grep "$dev"
|
|||
echo
|
||||
|
||||
# Get new variable.
|
||||
if [ $dev = "nvme0n1" ];
|
||||
then
|
||||
main=${dev}p2
|
||||
else
|
||||
main=${dev}2
|
||||
fi
|
||||
|
||||
# Encrypting partition.
|
||||
echo "Encrypting system partition. This might take a while."
|
||||
|
@ -184,7 +189,14 @@ lsblk | grep "$dev"
|
|||
echo
|
||||
|
||||
echo "Creating the filesystem."
|
||||
|
||||
if [ $dev = "nvme0n1" ];
|
||||
then
|
||||
boot=${dev}p2
|
||||
else
|
||||
boot=${dev}1
|
||||
fi
|
||||
|
||||
mkfs.fat -F 32 -n UEFI /dev/$boot &&
|
||||
echo "Filesystem for boot successfully created."
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue