add seedrng service for Linux

This moves urandom to *bsd only and adds seedrng as a separate service
for Linux.

This fixes #510
This commit is contained in:
William Hubbs
2022-03-30 11:15:13 -05:00
parent df18158e60
commit 0fb11190fa
10 changed files with 101 additions and 47 deletions

View File

@@ -24,11 +24,11 @@ case "${os}" in
;;
esac
boot="bootmisc fsck hostname localmount loopback root swap sysctl urandom"
boot="bootmisc fsck hostname localmount loopback root swap sysctl"
if [ "${net}" = yes ]; then
boot="${boot} network staticroute"
fi
boot_BSD="hostid newsyslog savecore syslogd"
boot_BSD="hostid newsyslog savecore syslogd urandom"
case "${os}" in
DragonFly)
@@ -39,7 +39,7 @@ case "${os}" in
;;
Linux)
boot="${boot} binfmt hwclock keymaps modules mtab procfs
save-keymaps save-termencoding termencoding"
save-keymaps save-termencoding seedrng termencoding"
;;
NetBSD)
boot="${boot} ${boot_BSD} devdb swap-blk tys wscons"