From aba1ae68f073382d7f0488b98c69af3e46b8d26a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 17 Apr 2019 20:50:39 +0200 Subject: [PATCH] [explorer] disks: use echo instead of find as fallback Fixes #761 --- cdist/conf/explorer/disks | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cdist/conf/explorer/disks b/cdist/conf/explorer/disks index 405a273a..ae93efc8 100755 --- a/cdist/conf/explorer/disks +++ b/cdist/conf/explorer/disks @@ -16,15 +16,12 @@ case "$os" in # hopefully everything else is linux if command -v lsblk > /dev/null then - # exclude ram disks, floppies and cdroms + # exclude ram disks, floppies and cdroms # https://www.kernel.org/doc/Documentation/admin-guide/devices.txt lsblk -e 1,2,11 -dno name | xargs else # fallback - find /dev \ - -type b \ - -regex '/dev/\(hd\|sd\|vd\)[a-z]+' \ - -printf '%f ' + cd /dev && echo [vsh]d? fi ;; esac