【环境信息】
硬件信息:
1) arm物理机 Taishan 2280 V2
软件信息:
1) OS版本及分支:openEuler-20.03-LTS-SP3
2) 内核信息:4.19.90-2111.7.0.0125.oe1.aarch64
3) 发现问题的组件版本信息:ndctl-68-1.oe1.aarch64
4)必现
【问题复现步骤】
安装选择最小化+standard
【预期结果】
/var/log/messages中无此报错
【实际结果】
/var/log/messages中有报错:
systemd-udevd[1105]: sh: /usr/bin/ndctl: No such file or directory
【附件信息】
Hi ga_beng_cui, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: Storage, and any of the maintainers: @zero, @liuzhiqiang, @linfeilong835, @louhongxiang.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
/usr/bin/ndctl: No such file or directory 属于一般提示性信息,因在initramfs中未将/bin/ndctl命令加载导致
此次修复将加载动作在dracut.conf.d目录添加dracut-nvdimm-security.conf文件,作用为系统启动后在initramfs中存在ndctl命令。
如使用的iso中默认安装新版本软件包ndctl-68-2,则提示信息消失;
如iso中默认安装旧版本软件包版本ndctl-68-1,则需先升级安装ndctl-68-2新版本软件包后,再执行 dracut -f 命令,覆盖更新*.img文件,重启系统后该提示信息消失;
用户在执行setup-passphrase/freeze-security操作之后,需将更新的密钥包含到 initramfs中
命令为:#dracut --include /etc/ndctl/keys /etc/ndctl/keys --install "ndctl keyctl" -f
该命令会将/etc/ndctl/keys文件目录下的秘钥加载到initramfs中,initramfs在启动过程中将不再报出/etc/ndctl/keys目录未找到的提示信息;
setup-passphrase具体用法参考:
ndctl setup-passphrase --help或社区文档
https://github.com/pmem/ndctl/blob/master/Documentation/ndctl/intel-nvdimm-security.txt
用最新版本已验证,日志中已无此报错
登录 后才可以发表评论