(Yocto/OpenEmbedded) 启用 systemd 的 libcryptsetup [英] (Yocto / OpenEmbedded) Enabling systemd's libcryptsetup

查看:31
本文介绍了(Yocto/OpenEmbedded) 启用 systemd 的 libcryptsetup的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试启用 systemd 的 libcryptsetup 模块,以便在启动时通过 crypttab 解密驱动器.似乎 crypttab 不存在,因为 systemd (216) 构建中缺少 systemd-cryptsetup-generator.

I am trying to enable systemd's libcryptsetup module in order to decrypt a drive at bootup through crypttab. It seems crypttab is not present because the systemd-cryptsetup-generator is missing from the systemd (216) build.

我试过在 PACKAGECONFIG 中指定cryptsetup"选项??语句并指定 --enable-libcryptsetup 作为构建中的参数,但该选项被 bitbake 使用的配置脚本禁用(它在我的启用语句后自动附加 --disable-cryptsetup)

I have tried specifying the "cryptsetup" option in the PACKAGECONFIG?? statement and also specifying --enable-libcryptsetup as argument in the build but the option is disabled by the config script bitbake uses (it appends automatically --disable-cryptsetup after my enable statement)

我怀疑这是因为 configure 检测到一些缺失的依赖项,因此我尝试指定 systemd 配方依赖于 cryptsetup 配方,但我以配方循环结束(cryptsetup 依赖于依赖于 systemd 的 lvm2,因此 cryptsetup 将无法构建在 systemd 构建之前).

I suspect this is because configure detected some missing dependency, therefore I tried specifying that the systemd recipe depends on the cryptsetup recipe but I ended in a recipe loop (cryptsetup depends on lvm2 which depends on systemd, so cryptsetup will not be buildable before systemd is built).

有没有人有任何建议或遇到类似的问题?谢谢!

Does anyone have any suggestion or encountered a similar issue? Thanks!

推荐答案

通过直接更改配方或 bbappend 或 local.conf 将cryptsetup"添加到 PACKAGECONFIG 应该可以解决问题.您使用的是什么版本的 OE,您能否粘贴您的更改,最好是 log.do_configure 的开头,其中显示了配置选项.

Adding "cryptsetup" to PACKAGECONFIG either via a direct change in the recipe, or a bbappend or local.conf, should do the trick. What release of OE are you using, can you paste your changes, and ideally the beginning of the log.do_configure where it shows what the configure options are.

如果您尝试直接在 EXTRA_OECONF 中启用它,但没有删除它认为已禁用的 PACKAGECONFIG[cryptsetup] 行(因此为您添加禁用标志),您将看到 --enable --disable.

And you'll see --enable --disable if you attempted to enable it directly in EXTRA_OECONF but didn't delete the PACKAGECONFIG[cryptsetup] line which it thinks is disabled (so adds the disabled flag for you).

这篇关于(Yocto/OpenEmbedded) 启用 systemd 的 libcryptsetup的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆