One slight change to the patch. It worked for sd/vd disks, but not for NVMe :) Just fixed the regex and tested on a system w/ 2 NVMe disks.
Change to this line only: grep -o '/dev/\([sv]d[a-z]\+\|nvme[0-9]\+n[0-9]\+p\)'
One slight change to the patch.
It worked for sd/vd disks, but not for NVMe :)
Just fixed the regex and tested on a system w/ 2 NVMe disks.
Change to this line only: ([sv]d[ a-z]\+\ |nvme[0- 9]\+n[0- 9]\+p\) '
grep -o '/dev/\