bug fix, -o also requires a loop type fs filter to avoid showing squashfs type partitions

This commit is contained in:
inxi-svn 2010-06-11 04:04:40 +00:00
parent f4d3d7a4e9
commit 7df3311080

3
inxi
View file

@ -3842,7 +3842,8 @@ get_unmounted_partition_data()
}
# note that size 1 means it is a logical extended partition container
# lvm might have dm-1 type syntax
/[a-z][0-9]+$|dm-[0-9]+$/ && $3 != 1 {
# need to exclude loop type file systems, squashfs for example
/[a-z][0-9]+$|dm-[0-9]+$/ && $3 != 1 && $NF !~ /loop/ {
size = sprintf( "%.2f", $3*1024/1000**3 )
print $4 "," size "G"
}' ) )