diff options
author | zsdc <taras@vyos.io> | 2022-10-27 19:43:07 +0300 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2022-10-27 19:46:15 +0300 |
commit | 0bee6e9f95d36250e6df3a705c0142b216079104 (patch) | |
tree | 3c62d17e72c46453b88f600ec0a08e31c84b25fc /scripts/install/install-functions | |
parent | c196da35164f87268522ab1ba97d507f446e4ed6 (diff) | |
download | vyatta-cfg-system-0bee6e9f95d36250e6df3a705c0142b216079104.tar.gz vyatta-cfg-system-0bee6e9f95d36250e6df3a705c0142b216079104.zip |
nvme: T4776: Fixed installation to NVME
* fixed NVME drive names parser
* replaced partition parser to take into account `p` suffixes
on NVME partitions
Diffstat (limited to 'scripts/install/install-functions')
-rwxr-xr-x | scripts/install/install-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-functions b/scripts/install/install-functions index 458d2e63..b3ec42c1 100755 --- a/scripts/install/install-functions +++ b/scripts/install/install-functions @@ -176,7 +176,7 @@ select_drive () { # the first grep pattern looks for devices named c0d0, hda, and sda. drives=$(cat /proc/partitions | \ awk '{ if ($4!="name") { print $4 } }' | \ - egrep "c[0-9]d[0-9]$|[hsv]d[a-z]$|nvme[0-9]n[0-9]|mmcblk[0-9]" | \ + egrep "c[0-9]d[0-9]$|[hsv]d[a-z]$|nvme[0-9]n[0-9]$|mmcblk[0-9]" | \ egrep -v "^$" | sort) #this needs more testing to decide if better than above |