diff options
-rw-r--r-- | perl-install/install/NEWS | 1 | ||||
-rw-r--r-- | perl-install/lvm.pm | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index e65624a97..6a05e333e 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,4 @@ +- fix handling LVM VGs with "-" in the name (#37267) - call X with -nolisten tcp to avoid "security" issues (#18320) (nb: this implies "xhost+" helper prog is not useful anymore) - do not propose ext4dev filesystem during install (#37157) 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; } |