Skip to content

Commit

Permalink
fix regex for nvme devices
Browse files Browse the repository at this point in the history
VMWare seem to use nvme namespaces to create multiple devices
  • Loading branch information
Mrfai committed Nov 29, 2023
1 parent 578e6bc commit 258dd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setup-storage/Init.pm
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ sub mark_encrypted {
sub make_device_name {
my ($dev, $p) = @_;
$dev .= "p" if ($dev =~
m{^/dev/(loop\d+|cciss/c\d+d\d+|ida/c\d+d\d+|md\d+|md/\w+\d*|rd/c\d+d\d+|ataraid/d\d+|etherd/e\d+\.\d+|nvme\d+n1|mmcblk\d+)$});
m{^/dev/(loop\d+|cciss/c\d+d\d+|ida/c\d+d\d+|md\d+|md/\w+\d*|rd/c\d+d\d+|ataraid/d\d+|etherd/e\d+\.\d+|nvme\d+n\d+|mmcblk\d+)$});
$dev .= $p;
internal_error("Invalid device $dev") unless (&FAI::phys_dev($dev))[0];
return $dev;
Expand Down

0 comments on commit 258dd9b

Please sign in to comment.