diff --git a/bsdfdisk/bsdfdisk-lib.pl b/bsdfdisk/bsdfdisk-lib.pl index 35886c403..33ab0e844 100644 --- a/bsdfdisk/bsdfdisk-lib.pl +++ b/bsdfdisk/bsdfdisk-lib.pl @@ -99,8 +99,8 @@ foreach my $dev (glob("/dev/ada[0-9]"), # Get disk model from dmesg open(DMESG, "/var/run/dmesg.boot"); while() { - if (/^(\S+):\s+<(.*)>/ && $1 eq $disk->{'short'}) { - $disk->{'model'} = $2; + if (/^(\S+):\s+(\S+\s+)?<(.*)>/ && $1 eq $disk->{'short'}) { + $disk->{'model'} = $3; } elsif (/^(\S+):\s+(\d+)(\S+)\s+\((\d+)\s+(\d+)\s+byte\s+sectors/ && $1 eq $disk->{'short'}) {