summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-13 04:35:57 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-13 04:35:57 +0000
commit89490a2dad02316682b601af9425ad4d7805ba71 (patch)
tree4fd84cabb488a8401d638bb0e9f0b60fc43f1b7b
parentd32716bbf24abee33ddf3c13e4e39a3d0d695fc6 (diff)
downloaddrakx-backup-do-not-use-89490a2dad02316682b601af9425ad4d7805ba71.tar
drakx-backup-do-not-use-89490a2dad02316682b601af9425ad4d7805ba71.tar.gz
drakx-backup-do-not-use-89490a2dad02316682b601af9425ad4d7805ba71.tar.bz2
drakx-backup-do-not-use-89490a2dad02316682b601af9425ad4d7805ba71.tar.xz
drakx-backup-do-not-use-89490a2dad02316682b601af9425ad4d7805ba71.zip
(device_name_to_entry) define $e->{devfs_prefix} if entry looks looks
like a devfs one but isn't found in device list (else our computed $e->{devfs_device} will be crappy)
-rwxr-xr-xperl-install/standalone/drakupdate_fstab1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index 46b05e9fc..9a34c317d 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -64,6 +64,7 @@ sub device_name_to_entry {
my ($e, $nb);
if ((my $devfs_prefix, $nb) = $name =~ m,(.*)/(?:cd|disc|part(\d+))$,) {
$e = find { $_->{devfs_prefix} eq $devfs_prefix } @l;
+ $e->{devfs_prefix} ||= $devfs_prefix;
} else {
if ($e = find { $name eq $_->{device} } @l) {
$nb = '';