]> code.ossystems Code Review - openembedded-core.git/commit
initramfs-framework: add retry loop for slow boot devices (like USB)
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 1 Jul 2016 13:53:51 +0000 (15:53 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Jul 2016 08:55:41 +0000 (09:55 +0100)
commit2a50bb9ee8838e3d026c82dc09aaccb880a264f4
tree0328166e340cc84bab4685d8cdab3692ee07f4c2
parentb1f2d9ed8d4dc89c9e669f43f546463ccc2a76b9
initramfs-framework: add retry loop for slow boot devices (like USB)

On some hardware platforms (Gigabyte, qemu), detection of USB devices
by the kernel is slow enough such that it happens only after the first
attempt to mount the rootfs. We need to keep trying for a while
(default: 5s seconds, controlled by roottimeout=<seconds>) and sleep
between each attempt (default: one second, rootdelay=<seconds>).

This change intentionally splits finding the rootfs (in the new
"rootfs") and switching to it ("finish"). That is needed to keep udev
running while waiting for the rootfs, because it shuts down before
"finish" starts. It is also the direction that was discussed on the OE
mailing list for future changes to initramfs-framework (like
supporting a "live CD" module, which would replace or further augment
mounting of the rootfs).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initrdscripts/initramfs-framework/finish
meta/recipes-core/initrdscripts/initramfs-framework/rootfs [new file with mode: 0644]
meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb