diff -r b9ddf49db5b8 -r 1f1d347eff00 SI/ptable.pm --- a/SI/ptable.pm Fri Jan 15 01:16:12 2010 +0100 +++ b/SI/ptable.pm Fri Jan 15 20:38:38 2010 +0100 @@ -23,11 +23,13 @@ my ($current, %dev); foreach (`sfdisk -d 2>/dev/null`) { chomp; + ### $_ if (/^# partition table .*?(\/\S+)/) { $current = (stat $1)[6] >> 8 == $devmapper ? undef : $1 and push(@{$dev{$current}}, $_); next; } + next if not $current; push @{$dev{$current}}, $_; } ### partiton tables of useful blockdevices: