summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/resize_ext2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-02-13 16:10:35 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-02-13 16:10:35 +0000
commit33c1da0c00cf85e6a04e3bbbd8f862e4896751d1 (patch)
treef847d2b337c1ef7c9837fc1a66c7bbedb694b4e7 /perl-install/diskdrake/resize_ext2.pm
parent32eae85faedb125bea5e99b576c8157394d7cf7d (diff)
downloaddrakx-backup-do-not-use-33c1da0c00cf85e6a04e3bbbd8f862e4896751d1.tar
drakx-backup-do-not-use-33c1da0c00cf85e6a04e3bbbd8f862e4896751d1.tar.gz
drakx-backup-do-not-use-33c1da0c00cf85e6a04e3bbbd8f862e4896751d1.tar.bz2
drakx-backup-do-not-use-33c1da0c00cf85e6a04e3bbbd8f862e4896751d1.tar.xz
drakx-backup-do-not-use-33c1da0c00cf85e6a04e3bbbd8f862e4896751d1.zip
(resize) run_program's 10mn timeout is catching resize2fs in real word, let's bump it to 60mn
Diffstat (limited to 'perl-install/diskdrake/resize_ext2.pm')
-rw-r--r--perl-install/diskdrake/resize_ext2.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/diskdrake/resize_ext2.pm b/perl-install/diskdrake/resize_ext2.pm
index 008b2977c..9bf113f90 100644
--- a/perl-install/diskdrake/resize_ext2.pm
+++ b/perl-install/diskdrake/resize_ext2.pm
@@ -31,7 +31,7 @@ sub resize {
my $s = int($size / ($o->{block_size} / 512));
log::l("resize2fs $o->{dev} to size $s in block of $o->{block_size} bytes");
- run_program::run_or_die("resize2fs", "-pf", $o->{dev}, $s);
+ run_program::raw({ timeout => 60 * 60 }, "resize2fs", "-pf", $o->{dev}, $s) or die "resize2fs failed";
}
1;