diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-30 02:44:16 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-30 02:44:16 +0000 |
commit | ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b (patch) | |
tree | 0afdebec145ec8998257395300a88ad694759920 /perl-install/standalone | |
parent | faec770a0f7068e2e623e5efcd9589e059a63352 (diff) | |
download | drakx-backup-do-not-use-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar drakx-backup-do-not-use-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar.gz drakx-backup-do-not-use-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar.bz2 drakx-backup-do-not-use-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.tar.xz drakx-backup-do-not-use-ae3c9d8027cffe84c7f0257a35bfdb91fa6aa55b.zip |
do not restrict "many partitions" test to SCSI devices
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/drakupdate_fstab | 4 |
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; |