diff options
author | Holger Paradies <retabell@gmx.de> | 2017-05-29 16:26:25 +0200 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2017-05-30 01:18:38 +0200 |
commit | 768379ff9fdcf0052ed9a6a45ceec9dae3820498 (patch) | |
tree | ffca5f5d4c26f5d2678863595e76d310a0d41552 /backend | |
parent | 1727050c6496f72aa4f3c5dfaa3c240be4122bcf (diff) | |
download | acritoxinstaller-768379ff9fdcf0052ed9a6a45ceec9dae3820498.zip acritoxinstaller-768379ff9fdcf0052ed9a6a45ceec9dae3820498.tar.gz |
add mmc partitions
Diffstat (limited to 'backend')
-rw-r--r-- | backend/modules/partitions | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/modules/partitions b/backend/modules/partitions index ccb8abf..52c8e73 100644 --- a/backend/modules/partitions +++ b/backend/modules/partitions @@ -19,7 +19,7 @@ function strip_live_media() function list_all_disks() { ( - awk -vli="$(awk '{if($2=="sd"||$2=="md"||$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=="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 ) | strip_live_media } @@ -49,6 +49,7 @@ function list_all_partitions() ( awk -vli="$(awk '{if($2=="sd") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if($1==list[i]&&$2%16!=0) print "/dev/"$4;}' /proc/partitions awk -vli="$(awk '{if($2=="md") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if($1==list[i]||$1==list[i]+250) print "/dev/"$4;}' /proc/partitions + awk -vli="$(awk '{if($2=="mmc") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if($1==list[i]||$1==list[i]+250) print "/dev/"$4;}' /proc/partitions awk -vli="$(awk '{if($2=="nvme") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if($1==list[i]+8) print "/dev/"$4;}' /proc/partitions list_dm_partitions ) | strip_live_media @@ -163,7 +164,7 @@ function list_linux_partitions() ;; esac done - for part in $(list_dm_partitions) $(awk -vli="$(awk '{if($2=="md") 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)) print "/dev/"$4;}' /proc/partitions) + for part in $(list_dm_partitions) $(awk -vli="$(awk '{if($2=="md"||$2="mmc") 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)) print "/dev/"$4;}' /proc/partitions) do [ "$(get_filesystem_type "$part")" = "Linux" ] && echo "$part" done |