Skip to content

Commit

Permalink
allow more than 10 nvme and mmcblk devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Aug 20, 2018
1 parent aa7b5d8 commit 0f93516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fai-disk-info
Expand Up @@ -30,4 +30,4 @@ stick=${stick%%[[:digit:]]*}


# echo a space separated list of devices and their block size
( egrep 'md[0-9]{3,}$' /proc/partitions; egrep ' etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.+\b| cciss/c[[:digit:]]+d[[:digit:]]+\b| ida/c[[:digit:]]+d[[:digit:]]+\b| rd/c[[:digit:]]+d[[:digit:]]+\b| fio.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b| vd.\b| xvd.\b| nvme[[:digit:]]n1$| mmcblk[[:digit:]]$' /proc/partitions ) | checkdisk
( egrep 'md[0-9]{3,}$' /proc/partitions; egrep ' etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.+\b| cciss/c[[:digit:]]+d[[:digit:]]+\b| ida/c[[:digit:]]+d[[:digit:]]+\b| rd/c[[:digit:]]+d[[:digit:]]+\b| fio.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b| vd.\b| xvd.\b| nvme[[:digit:]]+n1$| mmcblk[[:digit:]]+$' /proc/partitions ) | checkdisk

0 comments on commit 0f93516

Please sign in to comment.