summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-30 01:52:17 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-30 01:52:17 +0000
commit8fffb0869d3bc235f9c6da1f8664a806c055d110 (patch)
tree03fcf9041cda96cd5bbf04cb09930c1e91b36c08 /perl-install
parent2a75536a1c8cb0cd64ae6f0b8a756d70c1021b13 (diff)
downloaddrakx-backup-do-not-use-8fffb0869d3bc235f9c6da1f8664a806c055d110.tar
drakx-backup-do-not-use-8fffb0869d3bc235f9c6da1f8664a806c055d110.tar.gz
drakx-backup-do-not-use-8fffb0869d3bc235f9c6da1f8664a806c055d110.tar.bz2
drakx-backup-do-not-use-8fffb0869d3bc235f9c6da1f8664a806c055d110.tar.xz
drakx-backup-do-not-use-8fffb0869d3bc235f9c6da1f8664a806c055d110.zip
do not mount and add/delete in fstab when many partitions (#11005)
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 019d3cce7..d6fd1b22d 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\d+$||) {
- my @parts = grep { /part/ } all($name);
+ if ($name =~ s!/(part|sd[:alpha:]?)\d+$!!) {
+ my @parts = grep { /^(part|sd[:alpha:]?)\d+$/ } all($name);
@parts <= 1;
} else {
1;