mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 18:41:17 -03:00
Partition names should be prefixed by "p" for NVMe
This commit is contained in:
parent
809dafa70c
commit
b5adafafe6
1 changed files with 11 additions and 3 deletions
|
|
@ -87,12 +87,20 @@ else
|
||||||
export ISEFI=0 # No, BIOS
|
export ISEFI=0 # No, BIOS
|
||||||
fi # is EFI firmaare?
|
fi # is EFI firmaare?
|
||||||
|
|
||||||
|
# Detect drive type.
|
||||||
|
# For NVME drives, partition names should be prefixed by p.
|
||||||
|
if [[ ${DEV} == *"nvme"* ]] ; then
|
||||||
|
export PARTPREFIX="p" # Yes, NVME
|
||||||
|
else
|
||||||
|
export PARTPREFIX="" # No, regular
|
||||||
|
fi
|
||||||
|
|
||||||
# Set partition number based on the firmware type
|
# Set partition number based on the firmware type
|
||||||
if [ ${ISEFI} -ne 0 ] ; then
|
if [ ${ISEFI} -ne 0 ] ; then
|
||||||
# EFI firmware
|
# EFI firmware
|
||||||
export EFIPARTITION=1
|
export EFIPARTITION=${PARTPREFIX}1
|
||||||
export CRYPTPARTITION=2
|
export CRYPTPARTITION=${PARTPREFIX}2
|
||||||
else
|
else
|
||||||
# BIOS firmware
|
# BIOS firmware
|
||||||
export CRYPTPARTITION=1
|
export CRYPTPARTITION=${PARTPREFIX}1
|
||||||
fi # EFI firmware
|
fi # EFI firmware
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue