summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-01 12:17:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-01 12:17:45 +0000
commitc12e1ed0e54193a0b287a14544e65bd6d81702a3 (patch)
tree2ac0578db8bc24017fbf4ecb69cdd61eea278400 /perl-install/standalone
parent8d98b670beb5e850987b4c3aa108bdc71a3d7189 (diff)
downloaddrakx-c12e1ed0e54193a0b287a14544e65bd6d81702a3.tar
drakx-c12e1ed0e54193a0b287a14544e65bd6d81702a3.tar.gz
drakx-c12e1ed0e54193a0b287a14544e65bd6d81702a3.tar.bz2
drakx-c12e1ed0e54193a0b287a14544e65bd6d81702a3.tar.xz
drakx-c12e1ed0e54193a0b287a14544e65bd6d81702a3.zip
fix drakupdate_fstab adding twice an entry in fstab, one with the old name, one with the devfs name
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakupdate_fstab6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index 17ace8761..4a12f4461 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -78,7 +78,11 @@ sub device_name_to_entry {
$e->{device} = ($e->{prefix} || $e->{device}) . $nb;
}
$e ||= {};
- $e->{device} = $name; #- keeping the exact name given (often is the devfs name)
+ if ($e->{devfs_device} eq $name) {
+ $e->{prefer_devfs_name} = 1;
+ } else {
+ $e->{device} = $name; #- keeping the exact name given (often is the devfs name)
+ }
$e;
}