Refer Fedora/RedHat's way
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/6.5_technical_notes/dracut

Signed-off-by: Hongxu Jia <hongxu....@windriver.com>
---
 recipes-connectivity/openssh/fipscheck_1.5.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/recipes-connectivity/openssh/fipscheck_1.5.0.bb 
b/recipes-connectivity/openssh/fipscheck_1.5.0.bb
index 0a06bd3..23a4123 100644
--- a/recipes-connectivity/openssh/fipscheck_1.5.0.bb
+++ b/recipes-connectivity/openssh/fipscheck_1.5.0.bb
@@ -28,6 +28,10 @@ EXTRA_OEMAKE += " \
     -I${STAGING_LIBDIR_NATIVE}/ssl/fips-2.0/include \
 "
 do_install_append() {
+    # Is't the fedora way to enable fipscheck
+    install -d ${D}${sysconfdir}
+    touch ${D}${sysconfdir}/system-fips
+
     install -d ${D}${libdir}/fipscheck
 }
 
-- 
2.7.4

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to