summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index f33b22522..28a7cb41a 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -15,7 +15,7 @@ use run_program;
#- for partition_table_xxx emulation
sub new {
my ($class, $name) = @_;
- $name =~ s/\W/_/g;
+ $name =~ s/[^\w-]/_/g;
$name = substr($name, 0, 63); # max length must be < NAME_LEN / 2 where NAME_LEN is 128
bless { disks => [], VG_name => $name }, $class;
}