types zpool: create pool if device is a zfs_member

This commit is contained in:
lassulus committed 2024-03-21 05:36:42 +01:00
1 parent 1efdc66977
commit f6f2e009d6
1 file changed
+3
+3
View File
@@ -73,6 +73,9 @@
elif (blkid "$dev" -o export | grep '^PTUUID='); then
echo "device $dev already has a partuuid, skipping creating zpool ${config.name}" >&2
continue=0
elif (blkid "$dev" -o export | grep '^TYPE=zfs_member'); then
# zfs_member is a zfs partition, so we try to add the device to the pool
:
elif (blkid "$dev" -o export | grep '^TYPE='); then
echo "device $dev already has a partition, skipping creating zpool ${config.name}" >&2
continue=0