问题描述
我正在构建 Yocto (thud) 图像,但在 do_rootfs
期间出现错误:
update-alternatives: 错误:从 xxx/tmp/ 起没有将 xxx/tmp/work/cc-dey-linux/dey-image/1.0-r0/rootfs/usr/sbin/rtcwake 链接到 /bin/busyBox.nosuid work/cc-dey-linux/dey-image/1.0-r0/rootfs/usr/sbin/rtcwake 存在且不是链接
然后是详细的错误:
ERROR: dey-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['busyBox'] have Failed. If the intention is to defer them to first boot,then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in xxx/tmp/work/cc-dey-linux/dey-image/1.0-r0/temp/log.do_rootfs.
ERROR: dey-image-1.0-r0 do_rootfs: Function Failed: do_rootfs
ERROR: Logfile of failure stored in: xxx/tmp/work/cc-dey-linux/dey-image/1.0-r0/temp/log.do_rootfs.835055
在log.do_rootfs.835055
的文件中,错误日志和上面一样。
我想我有 3 个选择:
- 更新
update-alternatives
,但真的不知道如何 - 按照错误信息执行,使用
pkg_postinst_ontarget_${PN} ()
但是它们是什么来“将它们放入 pkg_postinst_ontarget_${PN} ()”?
其他文章说这个错误是因为重复了busyBox,这个选项有什么副作用吗?
有什么例子可以说明如何使用 pkg_postinst_ontarget_${PN} ()
?
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)