Systemd/src
Leonid Bloch 26601a2a17 sd-boot: Add a 0.1 second delay before key-probing for showing menu
If there is no boot menu timeout, pressing a key during boot should get
the boot menu displayed. However, on some systems the keyboard is not
initialized right away, which causes the menu to be inaccessible if no
timeout is specified.

To resolve this, if the error is "not ready" after the initial attempt of
detection, wait for 0.1 second and retry. This solves the problem
described above on all the tested systems.

The reason for just a single retry, and not retrying while "not ready",
is that some firmwares continue to return the "not ready" error on
every probe attempt if no key is pressed.

Signed-off-by: Leonid Bloch <lb.workbox@gmail.com>
2019-12-04 10:52:28 +01:00
..
ac-power
activate tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
analyze analyze: deprecate the commands moved to systemctl 2019-11-18 16:28:38 +01:00
ask-password
backlight util-lib: move shall_restore_state() to shared/reboot-util 2019-09-16 18:08:01 +02:00
basic Merge pull request #14133 from keur/clear_ambient_inherited 2019-12-04 10:30:58 +01:00
binfmt tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
boot sd-boot: Add a 0.1 second delay before key-probing for showing menu 2019-12-04 10:52:28 +01:00
busctl tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
cgls tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
cgroups-agent tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
cgtop Remove path_compare_func() alias for path_compare() 2019-11-15 14:47:45 +01:00
core Merge pull request #14133 from keur/clear_ambient_inherited 2019-12-04 10:30:58 +01:00
coredump tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
cryptsetup cryptsetup: reduce the chance that we will be OOM killed 2019-11-27 18:34:36 +01:00
debug-generator initrd: fix systemd.debug-shell & friends 2019-12-03 14:48:27 +01:00
delta tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
detect-virt
dissect
environment-d-generator environment-d-generator: output logs in debug mode 2019-08-30 13:17:37 +02:00
escape
firstboot firstboot: drop duplicate trailing whitespace from root pw question 2019-08-11 06:13:57 +09:00
fsck tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
fstab-generator Allow overriding /etc/fstab with $SYSTEMD_FSTAB 2019-11-13 22:04:51 +01:00
fuzz tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
getty-generator tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
gpt-auto-generator tree-wide: drop stat.h or statfs.h when stat-util.h is included 2019-11-04 00:30:32 +09:00
hibernate-resume
hostname tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
hwdb tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
id128 id128: fix initializer element is not constant 2019-11-20 10:59:25 +01:00
import include missing_fcntl.h where needed 2019-11-07 10:17:44 +00:00
initctl
journal journald: don't ask for the machine ID if we don't need it 2019-11-28 15:46:01 +01:00
journal-remote tree-wide: normalize includes of public headers 2019-11-28 09:14:22 +01:00
kernel-install kernel-install: do not require non-empty kernel cmdline 2019-08-27 18:30:49 +02:00
libsystemd Merge pull request #14211 from yuwata/support-nlmsgerr_attr_msg 2019-12-04 09:15:23 +01:00
libsystemd-network tree-wide: normalize includes of public headers 2019-11-28 09:14:22 +01:00
libudev tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
locale tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
login pam_systemd: prolong method call timeout when allocating session 2019-11-19 21:05:03 +01:00
machine machine: fold machine_stop_scope() into machine_stop() 2019-11-22 10:24:32 +01:00
machine-id-setup machine-id-setup: avoid unexpected aborting 2019-10-25 13:35:37 +09:00
modules-load tree-wide: drop libkmod.h when module-util.h is included 2019-11-04 00:30:32 +09:00
mount basic/fs-util: change CHASE_OPEN flag into a separate output parameter 2019-10-24 22:44:24 +09:00
network Merge pull request #14211 from yuwata/support-nlmsgerr_attr_msg 2019-12-04 09:15:23 +01:00
notify notify: add color to --help 2019-11-28 11:41:24 +01:00
nspawn nspawn: allow Capability=all in systemd.nspawn [EXEC] section 2019-11-29 14:42:27 +01:00
nss-myhostname tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
nss-mymachines meson: make nologin path build time configurable 2019-07-18 12:46:35 +02:00
nss-resolve tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
nss-systemd meson: make nologin path build time configurable 2019-07-18 12:46:35 +02:00
partition tree-wide: drop signal.h when signal-util.h is included 2019-11-04 00:30:32 +09:00
path
portable tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
pstore tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
quotacheck
random-seed tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
rc-local-generator
remount-fs Allow overriding /etc/fstab with $SYSTEMD_FSTAB 2019-11-13 22:04:51 +01:00
reply-password tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
resolve resolve: rename define fixing a typo 2019-11-21 12:45:25 +01:00
rfkill util-lib: move shall_restore_state() to shared/reboot-util 2019-09-16 18:08:01 +02:00
run tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
run-generator core: use SPECIAL_DEFAULT_TARGET more 2019-11-28 09:13:45 +01:00
shared Merge pull request #14177 from keszybz/use-initrd.target 2019-12-04 10:30:32 +01:00
shutdown umount: log on all errors 2019-11-15 14:58:06 +01:00
sleep tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
socket-proxy tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
stdio-bridge
sulogin-shell tree-wide: normalize includes of public headers 2019-11-28 09:14:22 +01:00
sysctl tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
system-update-generator util-lib: move runlevel_to_target() to shared/unit-file 2019-09-16 18:08:00 +02:00
systemctl systemctl: enhance message about kexec missing kernel 2019-12-03 17:15:44 +01:00
systemd dhcp: remove struct sd_dhcp_raw_option 2019-11-18 23:37:22 +09:00
sysusers Revert "sysusers: properly mark generated accounts as locked" 2019-10-22 17:59:11 +09:00
sysv-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
test Merge pull request #14133 from keur/clear_ambient_inherited 2019-12-04 10:30:58 +01:00
time-wait-sync tree-wide: drop signal.h when signal-util.h is included 2019-11-04 00:30:32 +09:00
timedate tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
timesync tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
tmpfiles tmpfiles: create with correct MAC label on option C 2019-11-28 12:18:04 +01:00
tty-ask-password-agent tree-wide: drop signal.h when signal-util.h is included 2019-11-04 00:30:32 +09:00
udev udev: Ensure udev_event_spawn reads stdout 2019-12-04 10:31:37 +01:00
update-done
update-utmp tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
user-sessions
vconsole tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
veritysetup tree-wide: replace strjoin() with path_join() 2019-06-24 23:59:38 +09:00
version
volatile-root basic/fs-util: change CHASE_OPEN flag into a separate output parameter 2019-10-24 22:44:24 +09:00