summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-19 10:53:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-19 10:53:38 +0000
commit3f3a82426afa9c25cb977c26c4b8afbaa5194b1a (patch)
treed8a8a7e212f9b474d9d7cd993ca358edd8080919
parent5fe17cecc03757ffc7400b6d915b084929517d3d (diff)
downloaddrakx-backup-do-not-use-3f3a82426afa9c25cb977c26c4b8afbaa5194b1a.tar
drakx-backup-do-not-use-3f3a82426afa9c25cb977c26c4b8afbaa5194b1a.tar.gz
drakx-backup-do-not-use-3f3a82426afa9c25cb977c26c4b8afbaa5194b1a.tar.bz2
drakx-backup-do-not-use-3f3a82426afa9c25cb977c26c4b8afbaa5194b1a.tar.xz
drakx-backup-do-not-use-3f3a82426afa9c25cb977c26c4b8afbaa5194b1a.zip
(getAndSaveAutoInstallFloppy): ensure mount fail doesn't cause any pb
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 80b2d92e3..e9c0a3dc2 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -803,7 +803,7 @@ sub getAndSaveAutoInstallFloppy {
getAndSaveInstallFloppy($o, $imagefile) or return;
my $dev = devices::set_loop($imagefile) or log::l("couldn't set loopback device"), return;
- fs::mount($dev, $mountdir, 'vfat', 0);
+ eval { fs::mount($dev, $mountdir, 'vfat', 0); 1 } or return;
substInFile {
s/timeout.*/$replay ? 'timeout 1' : ''/e;