Skip to content

Commit

Permalink
Merge pull request #13 in MTL/dracut-metal-luksetcd from feature/sas …
Browse files Browse the repository at this point in the history
…to release/shasta-1.4

* commit 'f5639db1ff352e22cc5c42efadbc35ed4621d74d':
  Merge pull request #12 in MTL/dracut-metal-luksetcd from integration to main
  • Loading branch information
rustydb committed Mar 5, 2021
2 parents a29a7b0 + f5639db commit 976acfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 93metalluksetcd/metal-luksetcd-disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type make_etcd > /dev/null 2>&1 || . /lib/metal-luksetcd-lib.sh
# DISKS or RETRY
# Ignore whatever was selected for the overlay by starting +1 from that index.
disk_index=$((${metal_disks:-2} + 1))
etcd="$(lsblk -b -l -o SIZE,NAME,TYPE,TRAN | grep -E '(sata|nvme)' | sort -h | awk '{print $1 " " $2}' | tail -n +${disk_index} | tr '\n' ' ')"
etcd="$(lsblk -b -l -o SIZE,NAME,TYPE,TRAN | grep -E '(sata|nvme|sas)' | sort -h | awk '{print $1 " " $2}' | tail -n +${disk_index} | tr '\n' ' ')"
[ -z "${etcd}" ] && exit 1
etcd_size="$(echo $etcd | awk '{print $1}')"
# 524288000000 is 0.5 TiB; required for this disk.
Expand Down

0 comments on commit 976acfa

Please sign in to comment.