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_fstab4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index 62950def6..2a14ed91b 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -75,12 +75,10 @@ sub device_name_to_entry {
} else {
(my $prefix, $nb) = $name =~ m/^(.*?)(\d*)$/;
$e = find { $prefix eq ($_->{prefix} || $_->{device}) } @l;
+ $e->{device} = ($e->{prefix} || $e->{device}) . $nb;
}
}
- if ($nb) {
- $e->{device} = ($e->{prefix} || $e->{device}) . $nb;
- }
$e ||= {};
unless ($e->{devfs_device} eq $name) {
$e->{device} = $name; #- keeping the exact name given (often is the devfs name)