summaryrefslogtreecommitdiff
path: root/nfs/nfs-autorun.sh
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2020-07-04 23:12:49 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2020-07-04 23:12:49 +0200
commit8d273fe8d76ef394cfab04a195c90f4b7aeb8495 (patch)
tree56c3bfab8caf76643e43ec06057694f311db862e /nfs/nfs-autorun.sh
parent2f0e8730567070d66609633a4006b952eb13ab40 (diff)
downloadeficast-8d273fe8d76ef394cfab04a195c90f4b7aeb8495.tar.gz
eficast-8d273fe8d76ef394cfab04a195c90f4b7aeb8495.tar.bz2
eficast-8d273fe8d76ef394cfab04a195c90f4b7aeb8495.zip
Fix firstdisk_test for NVMe, add $firstdisk and $firstdiskp vars
Diffstat (limited to 'nfs/nfs-autorun.sh')
-rwxr-xr-xnfs/nfs-autorun.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/nfs/nfs-autorun.sh b/nfs/nfs-autorun.sh
index bb3c602..04cdf0e 100755
--- a/nfs/nfs-autorun.sh
+++ b/nfs/nfs-autorun.sh
@@ -11,7 +11,9 @@ source $scriptdir/funcs.sh # Load some nfs-autorun.sh specific helper functions
# Check all prerequisites and exit if it fail
hostname_test || exit 1
-firstdisk_test || exit 2
+firstdisk=$(firstdisk)
+firstdisk_test "$firstdisk" || exit 2
+firstdiskp=$(firstdiskp "$firstdisk")
# Run the main action script
if nfswrite_test