#2228 wider grep to detect nvms (#2427)

This commit is contained in:
/rootzoll 2021-07-20 19:19:34 +02:00 committed by GitHub
parent 11948ede38
commit 9a77f765df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ if [ "$1" = "status" ]; then
hdd=""
sizeDataPartition=0
OSPartition=$(sudo df /usr | grep dev | cut -d " " -f 1 | sed "s/\/dev\///g")
lsblk -o NAME,SIZE -b | grep -P "[s|v]d[a-z][0-9]?" > .lsblk.tmp
lsblk -o NAME,SIZE -b | grep -P "[s|vn][dv][a-z][0-9]?" > .lsblk.tmp
while read line; do
# cut line info into different informations