diff --git a/inxi b/inxi index c915474..8f1c8b5 100755 --- a/inxi +++ b/inxi @@ -2326,7 +2326,11 @@ get_partition_data() IGNORECASE=1 } /\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$/ && ! /aufs/ { - print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main" + # this handles yet another fredforfaen special case where a mounted drive + # has the search string in its name + if ( $NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ ) { + print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main" + } } # skip all these, including the first, header line. Use the --exclude-type # to handle new filesystems types we do not want listed here