From 0600dd519ea86f5ca8b69e06ce590d390353bb40 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 5 Feb 2009 00:39:18 +0000 Subject: [PATCH] bug hunting --- inxi | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 )'"