From 40318793b1cd0c86b84626e3c02970a2615675d9 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 22 Jan 2023 18:27:54 +0100 Subject: [PATCH] fix rootfs var --- setup-nasbeery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-nasbeery b/setup-nasbeery index e439ef8..2a15238 100644 --- a/setup-nasbeery +++ b/setup-nasbeery @@ -136,7 +136,7 @@ echo "Update time via ntp" ntpdate-debian -b > /dev/null rootfs=$(grep " / " /proc/mounts | cut -d'/' -f3) -zdisks=$(echo $(lsblk -nd -I 8,259 -o name | grep -v $rootfs) | cut -d' ' -f1-2) +zdisks=$(echo $(lsblk -nd -I 8,259 -o name | grep -v ${rootfs:0:3}) | cut -d' ' -f1-2) case $FORMAT in 0) echo "Your ZFS Data will be preserved";; 1) echo "Existing data on the drives will be deleted..."