mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix, -o also requires a loop type fs filter to avoid showing squashfs type partitions
This commit is contained in:
parent
f4d3d7a4e9
commit
7df3311080
3
inxi
3
inxi
|
@ -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"
|
||||
}' ) )
|
||||
|
|
Loading…
Reference in a new issue