summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorJoerg Schirottke <master@kanotix.com>2020-12-29 21:30:19 +0100
committerHolger Paradies <retabell@gmx.de>2020-12-30 13:22:28 +0100
commita9215471e54fa17667d031fa321ae05ab497b7cb (patch)
treeb34779f493dc93c4a5489bdbfc19376e0827b25e /backend
parent8c67efc87bdf75cc990c8c397a063a51ae7cd0d0 (diff)
downloadacritoxinstaller-a9215471e54fa17667d031fa321ae05ab497b7cb.zip
acritoxinstaller-a9215471e54fa17667d031fa321ae05ab497b7cb.tar.gz
fix nvme detection
Diffstat (limited to 'backend')
-rw-r--r--backend/modules/partitions2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/modules/partitions b/backend/modules/partitions
index bc89012..7b3d5f2 100644
--- a/backend/modules/partitions
+++ b/backend/modules/partitions
@@ -22,7 +22,7 @@ function strip_live_media()
function list_all_disks()
{
(
- awk -vli="$(awk '{if($2=="sd"||$2=="md"||$2=="mmc"||$2=="nvme") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if(($1==list[i]&&$2%16==0)||($1==list[i]&&$2==126||($1==list[i]+8&&$2%16==0))) print "/dev/"$4;}' /proc/partitions
+ awk -vli="$(awk '{if($2=="sd"||$2=="md"||$2=="mmc"||$2=="blkext") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if(($1==list[i]&&$2%16==0)||($1==list[i]&&$1==9)) print "/dev/"$4;}' /proc/partitions
) | strip_live_media
}