Merge pull request #74 from saveriomiroddi/add_emmc_disks_support

Add support for eMMC disks
This commit is contained in:
Saverio Miroddi 2020-03-26 19:44:13 +01:00 committed by GitHub
commit fd7f43e5a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,7 +261,7 @@ function find_suitable_disks {
# Iterating via here-string generates an empty line when no devices are found. The options are
# either using this strategy, or adding a conditional.
#
candidate_disk_ids=$(find /dev/disk/by-id -regextype awk -regex '.+/(ata|nvme|scsi)-.+' -not -regex '.+-part[0-9]+$' | sort)
candidate_disk_ids=$(find /dev/disk/by-id -regextype awk -regex '.+/(ata|nvme|scsi|mmc)-.+' -not -regex '.+-part[0-9]+$' | sort)
mounted_devices="$(df | awk 'BEGIN {getline} {print $1}' | xargs -n 1 lsblk -no pkname 2> /dev/null | sort -u || true)"
while read -r disk_id || [[ -n "$disk_id" ]]; do