summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakupdate_fstab
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/drakupdate_fstab')
-rwxr-xr-xperl-install/standalone/drakupdate_fstab5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index 01c21e758..ed2a86cea 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -68,6 +68,8 @@ sub device_name_to_entry {
$e->{devfs_device} = $e->{devfs_prefix} . '/part' . $nb;
if ($e->{devfs_device} eq $name) {
$e->{prefer_devfs_name} = 1;
+ } else {
+ $e->{device} = $name;
}
} else {
unless ($e = find { $name eq $_->{device} } @l) {
@@ -78,9 +80,6 @@ sub device_name_to_entry {
}
$e ||= {};
- unless ($e->{devfs_device} eq $name) {
- $e->{device} = $name; #- keeping the exact name given (often is the devfs name)
- }
$e->{media_type} = 'fd' if $name =~ /fd[01]/;
$e;
}