diff --git a/inxi b/inxi index 0a77f84..7557f28 100755 --- a/inxi +++ b/inxi @@ -2387,18 +2387,16 @@ get_partition_data_advanced() # slice out the /dev partition=gensub( /^(\/dev\/)(.+)$/, "\\2", 1, $1 ) - # label and uuid can occur for root + # label and uuid can occur for root, set partition to null now if ( partition ~ /by-label/ ) { label=gensub( /^(\/dev\/disk\/by-label\/)(.+)$/, "\\2", 1, $1 ) + partition = "" } if ( partition ~ /by-uuid/ ) { uuid=gensub( /^(\/dev\/disk\/by-uuid\/)(.+)$/, "\\2", 1, $1 ) - } - # if partition is not standard /dev/h/dx, but rather /dev/disk/... set it null since - # that is not useful for this purpose. - if ( partition ~ /disk/ ) { partition = "" } + # handle Arch /dev/root for / id if ( partition == "root" ) { partTemp="'$( readlink /dev/root 2>/dev/null )'"