diff options
author | Michael Brown | 2008-07-08 04:50:44 +0200 |
---|---|---|
committer | Michael Brown | 2008-07-08 04:50:44 +0200 |
commit | 0436e417bcb9acd658b73a65172474a71eb12b83 (patch) | |
tree | f943d7ba1a70016b8a2d8246b6d60a599c68e73a /src/hci/commands/image_cmd.c | |
parent | [image] Revert "clear LOADED flag" patch (diff) | |
download | ipxe-0436e417bcb9acd658b73a65172474a71eb12b83.tar.gz ipxe-0436e417bcb9acd658b73a65172474a71eb12b83.tar.xz ipxe-0436e417bcb9acd658b73a65172474a71eb12b83.zip |
[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/commands/image_cmd.c')
-rw-r--r-- | src/hci/commands/image_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/commands/image_cmd.c b/src/hci/commands/image_cmd.c index 05e7ddee..d1a38c47 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; } } |