summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-30 02:44:16 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-30 02:44:16 +0000
commitae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b (patch)
tree0afdebec145ec8998257395300a88ad694759920 /perl-install
parentfaec770a0f7068e2e623e5efcd9589e059a63352 (diff)
downloaddrakx-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar
drakx-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar.gz
drakx-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar.bz2
drakx-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar.xz
drakx-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.zip
do not restrict "many partitions" test to SCSI devices
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakupdate_fstab4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index d6fd1b22d..14d173893 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -48,8 +48,8 @@ sub check_hard_drives {
#- do not do anything if there are many partitions
#- otherwise we may add main extended partitions
- if ($name =~ s!/(part|sd[:alpha:]?)\d+$!!) {
- my @parts = grep { /^(part|sd[:alpha:]?)\d+$/ } all($name);
+ if (my ($path, $prefix) = $name =~ m!^(.*)/(\w+)\d+$!) {
+ my @parts = grep { /^\Q$prefix\E\d+$/ } all($path);
@parts <= 1;
} else {
1;