From 62fbe65d237f2cfb7daa167d6d291b70965a8673 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 9 Sep 2021 10:13:40 +0200 Subject: [PATCH] Add functionality for NVMe (#2101) --- disk/format-chosen.sh | 4 ++++ disk/format-sdb.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/disk/format-chosen.sh b/disk/format-chosen.sh index 0132a1ba..e575ec6f 100644 --- a/disk/format-chosen.sh +++ b/disk/format-chosen.sh @@ -70,6 +70,10 @@ elif partprobe /dev/sdb &>/dev/null; then SYSNAME="machines" DEVTYPE=sdb +elif partprobe /dev/nvme0n1 &>/dev/null; +then + SYSNAME="NVMe" + DEVTYPE=nvme0n1 else msg_box "It seems like you didn't add a second disk. To be able to put the DATA on a second drive formatted as ZFS you need to add a second disk to this server. diff --git a/disk/format-sdb.sh b/disk/format-sdb.sh index 48be3227..8ea8ad5c 100644 --- a/disk/format-sdb.sh +++ b/disk/format-sdb.sh @@ -70,6 +70,10 @@ elif partprobe /dev/sdb &>/dev/null; then SYSNAME="machines" DEVTYPE=sdb +elif partprobe /dev/nvme0n1 &>/dev/null; +then + SYSNAME="NVMe" + DEVTYPE=nvme0n1 else msg_box "It seems like you didn't add a second disk. To be able to put the DATA on a second drive formatted as ZFS you need to add a second disk to this server.