diff --git a/src/PVE/Diskmanage.pm b/src/PVE/Diskmanage.pm index 0217c75..4272668 100644 --- a/src/PVE/Diskmanage.pm +++ b/src/PVE/Diskmanage.pm @@ -328,7 +328,7 @@ sub get_udev_info { return if !defined($data->{devpath}); $data->{serial} = 'unknown'; - $data->{serial} = $1 if $info =~ m/^E: ID_SERIAL_SHORT=(\S+)$/m; + $data->{serial} = $1 if $info =~ m/^E: ID_SERIAL_SHORT=\s*(\S+)$/m; $data->{gpt} = $info =~ m/^E: ID_PART_TABLE_TYPE=gpt$/m ? 1 : 0;