diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/fs.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm index 1af9d6910..c01207220 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -77,11 +77,11 @@ sub read_fstab { $dev = $h->{device} = $e->{device}; } } - if ($dev =~ m,/(tmp|dev)/,) { + if ($dev =~ m,^/(tmp|dev)/,) { ($h->{major}, $h->{minor}) = unmakedev((stat "$prefix$dev")[6]); my $symlink = readlink("$prefix$dev"); - $dev =~ s,/(tmp|dev)/,,; + $dev =~ s,^/(tmp|dev)/,,; if ($symlink =~ m|^[^/]+$|) { $h->{device_alias} = $dev; |