From be1c12e1380415513b470fa4f63210c6cfa173bf Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Thu, 26 Mar 2020 18:36:32 +0100 Subject: [PATCH] Add support for eMMC disks Cheap laptops typically have eMMC. Although it's questionable whether ZFS will run on them, it's still worth adding. This may accidentally give the option to install on external eMMC cards on system having such ports, however, the audience is advanced, so it's ok to display it. This should also allow to install on SBCs with an eMMC. --- install-zfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-zfs.sh b/install-zfs.sh index d152979..3e9bd5e 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -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