bug hunting

This commit is contained in:
inxi-svn 2009-02-05 00:39:18 +00:00
parent 26bac8e668
commit 0600dd519e

8
inxi
View file

@ -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 )'"