Make riju-init-volume more robust

This commit is contained in:
Radon Rosborough 2021-03-14 17:18:06 -07:00
parent 0f3750b202
commit 40c8c08bed
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ mount_point=/mnt/riju/data
mkdir -p "${mount_point}"
disks="$(lsblk -l -d -b -o name,size | grep nvme)"
disks="$(lsblk -l -d -b -o name,size | grep -Ev 'loop|NAME')"
num_disks="$(wc -l <<< "${disks}")"
if [[ "${num_disks}" != 2 ]]; then