Memo

20250114 fgn4webu

PVE LXC 中运行 OpenWRT,遇到 dnsmaq 报如下错误: `text daemon.crit dnsmasq[1]: failed to seed the random number generator: No such file or directory ` 解决方法: 编辑 /etc/init.d/dnsmasq 文件。找到 DHCPSCRIPT_DEPENDS 行,追加...

PVE LXC 中运行 OpenWRT,遇到 dnsmaq 报如下错误:

daemon.crit dnsmasq[1]: failed to seed the random number generator: No such file or directory

解决方法:

编辑 /etc/init.d/dnsmasq 文件。找到 DHCPSCRIPT_DEPENDS 行,追加 /dev/urandom,注意空格。改完后大概长下面这样:

DHCPSCRIPT_DEPENDS="/usr/share/libubox/jshn.sh /usr/bin/jshn /bin/ubus /dev/urandom"

然后重启容器即可。