Skip to content

Commit

Permalink
haveged: run early in oneshot mode
Browse files Browse the repository at this point in the history
Run haveged in oneshot mode when /dev/random becomes available.
This ensures some entropy is available as soon as possible during
the boot process.

This is mostly relevant on ccgx where the crng initialisation
otherwise takes a very long time.
  • Loading branch information
mansr authored and jhofstee committed Feb 19, 2025
1 parent 237cff4 commit 01734cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions meta-venus/recipes-extended/haveged/haveged.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ACTION=="add", KERNEL=="random", RUN+="/usr/sbin/haveged -F -w 1024 --once"
9 changes: 9 additions & 0 deletions meta-venus/recipes-extended/haveged/haveged_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FILESEXTRAPATHS:prepend := "${THISDIR}:"

SRC_URI += "\
file://haveged.rules \
"

do_install:append() {
install -D -m 644 ${UNPACKDIR}/haveged.rules ${D}${sysconfdir}/udev/rules.d/55-haveged.rules
}

0 comments on commit 01734cc

Please sign in to comment.