Add support for NVMe naming scheme.
This commit is contained in:
parent
614c9d0661
commit
2f9c68216c
16
install.sh
16
install.sh
|
@ -164,7 +164,12 @@ lsblk | grep "$dev"
|
|||
echo
|
||||
|
||||
# Get new variable.
|
||||
main=${dev}2
|
||||
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."
|
||||
boot=${dev}1
|
||||
|
||||
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