fix: ensure install script works for nvme drives
This commit is contained in:
parent
2d08a50d8d
commit
79df2e5bb4
11
install.bash
11
install.bash
@ -6,8 +6,15 @@ install() {
|
||||
local encrypt_disk="${2}"
|
||||
local host="${3}"
|
||||
|
||||
local boot_partition="${disk}1"
|
||||
local primary_partition="${disk}2"
|
||||
local boot_partition=""
|
||||
local primary_partition=""
|
||||
if [[ "${disk}" == *"nvme"* ]]; then
|
||||
local boot_partition="${disk}p1"
|
||||
local primary_partition="${disk}p2"
|
||||
else
|
||||
local boot_partition="${disk}1"
|
||||
local primary_partition="${disk}2"
|
||||
fi
|
||||
# The size is large because I'd like to be able to hibernate my laptop in its entirety. I have 64 GB of ram.
|
||||
|
||||
local label_crypt_luks="NixOS-Crypt"
|
||||
|
Loading…
Reference in New Issue
Block a user