diff options
author | Michael Brown | 2015-04-22 11:38:24 +0200 |
---|---|---|
committer | Michael Brown | 2015-04-22 11:38:24 +0200 |
commit | a70089b46e16c55a69726fe63bbfe32b4a18a1bd (patch) | |
tree | 2350bee9cd548184cfc35068032460670f7676b6 /memsize.c | |
parent | [smp] Allow CONSERVATIVE_SMP to be overridden by "smp" command-line option (diff) | |
download | memtest86-a70089b46e16c55a69726fe63bbfe32b4a18a1bd.tar.gz memtest86-a70089b46e16c55a69726fe63bbfe32b4a18a1bd.tar.xz memtest86-a70089b46e16c55a69726fe63bbfe32b4a18a1bd.zip |
[cmdline] Add "onefail" command-line parameter
The semantics of "onepass" (as implemented upstream) are such that
memtest86+ will never exit if tests fail; the failures are simply left
on screen for the user to observe while the tests continue to run.
This makes sense in the upstream build of memtest86+, where "exit"
means "reboot". However, when running memtest86+ as a PXE NBP it
would be more useful to return to the caller after a failure (with the
appropriate exit status).
Add a command-line parameter "onefail" which will trigger an immediate
exit in the event of a failure. Users of the PXE NBP version of
memtest86+ in an automated environment can then invoke memtest86+ with
both "onepass" and "onefail" options; for example:
#!ipxe
chain memtest.0 onepass onefail && goto mem_good || goto mem_bad
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'memsize.c')
0 files changed, 0 insertions, 0 deletions