Karel Kočí 77c740c826 sys-fs/cryptsetup: wait for source to appear
Devices that are primarily hotplug are commonly initialized little bit
later when init is already started. This can be either because they
require module or because they are just slow to initialize or because
they are just last in the line. No matter the reason the expectation
that source is always immediately available to open does not apply.

Real live example is all time plugged in SD card on some embedded
devices serving as extension storage. It is removable and thus it is
highly desirable to encrypt it but it is initialized asynchronously thus
it is not available immediately after boot.

This adds new argument `wait`. It is in default set to 5 seconds. It can
be set to zero for devices that are not expected to be present during
the boot process (although such usage seems to me like a hack). Any
other device should be present and thus wait is skipped or it benefits
from wait.

Signed-off-by: Karel Kočí <cynerd@email.cz>
Closes: https://github.com/gentoo/gentoo/pull/21987
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
2021-08-19 10:53:38 +02:00
2021-08-03 12:24:28 -05:00
2021-08-19 08:34:19 +02:00
2021-08-19 04:27:47 +01:00
2021-08-18 20:22:48 +01:00
2021-08-13 10:07:14 +08:00
2021-08-16 07:48:10 +02:00
2021-08-15 17:41:08 -04:00
2021-08-18 23:27:37 -07:00
2021-08-11 03:05:18 +01:00
2021-08-17 11:15:55 +02:00
2021-08-15 10:39:15 +03:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%