Tell no_bus_info- rather than not_usb- if lsblkd -o TRAN fails

This commit is contained in:
Thomas Schmitt 2019-12-05 18:17:17 +01:00
parent 5e727b43ad
commit a09ed16fc3

View File

@ -385,10 +385,6 @@ list_devices() {
else
transports=$("$lsblk_cmd" -n -o TRAN /dev/"$name")
fi
if test -z "$transports"
then
transports=lsblk_failed_tran
fi
for trans in $transports
do
if test "$trans" = "usb" -o "$trans" = "mmcblk"