diff options
author | Carlo Caione | 2018-03-19 11:31:07 +0100 |
---|---|---|
committer | Karel Zak | 2018-03-19 14:06:09 +0100 |
commit | a9cf659e0508c1f56813a7d74c64f67bbc962538 (patch) | |
tree | c593f6bfac3157111c493d7234374afbe1438267 /configure.ac | |
parent | mcookie: (man) add note about getrandom() (diff) | |
download | kernel-qcow2-util-linux-a9cf659e0508c1f56813a7d74c64f67bbc962538.tar.gz kernel-qcow2-util-linux-a9cf659e0508c1f56813a7d74c64f67bbc962538.tar.xz kernel-qcow2-util-linux-a9cf659e0508c1f56813a7d74c64f67bbc962538.zip |
lib/randutils: Do not block on getrandom()
In Endless we have hit a problem when using 'sfdisk' on the really first
boot to automatically expand the rootfs partition. On this platform
'sfdisk' is blocking on getrandom() because not enough random bytes are
available. This is an ARM platform without a hwrng.
We fix this passing GRND_NONBLOCK to getrandom(). 'sfdisk' will use the
best entropy it has available and fallback only as necessary.
Signed-off-by: Carlo Caione <carlo@endlessm.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions