startup: don't clobber original autoboot state
do_autoboot_countdown changes autoboot state if the user presses m for
menu or ctrl+c to abort during count down. This is an internal detail
and doesn't need to be reflected in the state of the global variable.

This will improve UX when exporting the variable in the follow-up
commit, because on a regular boot it $autoboot will expand to countdown
instead of abort/boot/menu dependent on prior user input.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c5c6fa5 commit 19738925331a98244f7f774001e4964e9891d3b6
@Ahmad Fatoum Ahmad Fatoum authored on 22 Apr 2020
Sascha Hauer committed on 27 Apr 2020
Showing 1 changed file
View
common/startup.c