Description of problem: 系统服务检查中,rngd.service启动失败 软件版本: #内核版本 # uname -r 5.10.134-16.2_rc2.an23.loongarch64 #系统版本 # cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" iso下载: https://build.openanolis.cn/kojifiles/output/anolis-23-20240128.3/compose/os/loongarch64/iso/anolis-23-loongarch64-dvd1-20240128.3.iso Steps to Reproduce: 1.系统安装启动后,在终端执行systemctl --failed Actual results: [root@bogon ~]# systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● rngd.service loaded failed failed Hardware RNG Entropy Gatherer Daemon LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 1 loaded units listed. Expected results: systemctl --failed检查无启动失败的服务 Additional info:
麻烦补充 systemctl status rngd.service 的结果
[root@bogon ~]# systemctl status rngd.service × rngd.service - Hardware RNG Entropy Gatherer Daemon Loaded: loaded (/usr/lib/systemd/system/rngd.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Wed 2024-01-31 09:49:10 CST; 2min 5s ago Duration: 4.798s Process: 1013 ExecStart=/usr/sbin/rngd -f $RNGD_ARGS (code=exited, status=1/FAILURE) Main PID: 1013 (code=exited, status=1/FAILURE) CPU: 19.298s 1月 31 09:49:05 anolis rngd[1013]: [hwrng ]: Initialization Failed 1月 31 09:49:05 anolis rngd[1013]: [jitter]: JITTER timeout set to 5 sec 1月 31 09:49:05 anolis rngd[1013]: [jitter]: Initializing AES buffer 1月 31 09:49:10 anolis rngd[1013]: [jitter]: Unable to obtain AES key, disabling JITTER source 1月 31 09:49:10 anolis rngd[1013]: [jitter]: Initialization Failed 1月 31 09:49:10 anolis rngd[1013]: Can't open any entropy source 1月 31 09:49:10 anolis rngd[1013]: Maybe RNG device modules are not loaded 1月 31 09:49:10 anolis systemd[1]: rngd.service: Main process exited, code=exited, status=1/FAILURE 1月 31 09:49:10 anolis systemd[1]: rngd.service: Failed with result 'exit-code'. 1月 31 09:49:10 anolis systemd[1]: rngd.service: Consumed 19.298s CPU time.
没有可用的熵源,导致服务启动失败,需要查询一下机器可用的熵源