summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/fs.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 493dc2ca6..d9bba4694 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -42,8 +42,11 @@ sub read_fstab {
}
if ($dev =~ m,/(tmp|dev)/,) {
- $dev = expand_symlinks($dev);
- $dev =~ s,/(tmp|dev)/,,;
+ if (readlink($dev) !~ m|/|) {
+ $dev = readlink($dev);
+ } else {
+ $dev =~ s,/(tmp|dev)/,,;
+ }
}
{ device => $dev, mntpoint => $mntpoint, type => $type, options => $options };