aboutsummaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2008-07-08 03:50:44 +0100
committerMichael Brown <mcb30@etherboot.org>2008-07-08 03:50:44 +0100
commit0436e417bcb9acd658b73a65172474a71eb12b83 (patch)
treef943d7ba1a70016b8a2d8246b6d60a599c68e73a /src/hci
parent4f2861a3767700f3acb6320b10a67ea983f9ba0c (diff)
downloadipxe-0436e417bcb9acd658b73a65172474a71eb12b83.tar.gz
[image] Fail "imgexec"/"boot" if the image to execute is ambiguous
If there is more than one loaded image, refuse to automatically select the image to execute. There are at least two possible cases, with different "correct" answers: 1. User loads image A by mistake, then loads image B and types "boot". User wants to execute image B. 2. User loads image A, then loads image B (which patches image A), then types "boot". User wants to execute image A. If a user actually wants to load multiple images, they must explicitly specify which image is to be executed.
Diffstat (limited to 'src/hci')
-rw-r--r--src/hci/commands/image_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/commands/image_cmd.c b/src/hci/commands/image_cmd.c
index 05e7ddeea..d1a38c470 100644
--- a/src/hci/commands/image_cmd.c
+++ b/src/hci/commands/image_cmd.c
@@ -407,7 +407,7 @@ static int imgexec_exec ( int argc, char **argv ) {
} else {
image = imgautoselect();
if ( ! image ) {
- printf ( "No loaded images\n" );
+ printf ( "No (unique) loaded image\n" );
return 1;
}
}