mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
only import if missing
This commit is contained in:
parent
c33ef63893
commit
3f5d270fef
@ -36,7 +36,10 @@ fi
|
||||
|
||||
# In either case it's always better to use UUID instead of the /dev/sdX name, so do that as well
|
||||
# Import zpool in case missing
|
||||
zpool import -f "$POOLNAME"
|
||||
if zpool list | grep -q 'no pools available'
|
||||
then
|
||||
zpool import -f "$POOLNAME"
|
||||
fi
|
||||
|
||||
# Get UUID
|
||||
if fdisk -l /dev/sdb1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user