summaryrefslogtreecommitdiffstats
path: root/perl-install/install/commands.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-02-17 22:41:25 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-02-17 23:26:41 +0100
commit377e714008c08a1b8439ae619624b1218627afd9 (patch)
treea48ee61288fb2ac95e694acfa5cce8f8511ef379 /perl-install/install/commands.pm
parente12526e5d33fd42bceb52607da888b5ea27698d7 (diff)
downloaddrakx-377e714008c08a1b8439ae619624b1218627afd9.tar
drakx-377e714008c08a1b8439ae619624b1218627afd9.tar.gz
drakx-377e714008c08a1b8439ae619624b1218627afd9.tar.bz2
drakx-377e714008c08a1b8439ae619624b1218627afd9.tar.xz
drakx-377e714008c08a1b8439ae619624b1218627afd9.zip
display a nicer message when no removable medium is found (mga#14435)
Diffstat (limited to 'perl-install/install/commands.pm')
-rw-r--r--perl-install/install/commands.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/install/commands.pm b/perl-install/install/commands.pm
index 9df55cbb7..79f49b980 100644
--- a/perl-install/install/commands.pm
+++ b/perl-install/install/commands.pm
@@ -402,6 +402,7 @@ sub bug {
require install::any;
my @devs = install::any::removable_media__early_in_install();
+ @devs or die "You need to plug a removable medium (USB key, floppy, ...)\n";
$part = $in->ask_from_listf('', "Which device?", \&partition_table::description,
\@devs) or return;