rpm: disable inhibit plugin for rpm-native

We have a bbappend file which enables plugins for rpm. We need to
ensure to also disable the inhibit plugin for rpm-native. Otherwise,
we get the following warning at rootfs time.

   Unable to get systemd shutdown inhibition lock: Socket name too long

The inhibit plugin tries to inhibit shutdown during rpm operation. It
obviously makes no sense for rpm-native, as 1) we may not build on a
systemd based host and 2) the build process does not affect the package
management on host.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
This commit is contained in:
Chen Qi
2018-10-17 13:34:59 +08:00
committed by Jia Zhang
parent 45893433ad
commit 1daba563d4

View File

@@ -6,3 +6,4 @@ PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'imaevm', '', d)
EXTRA_OECONF_remove += "\
--disable-plugins \
"
EXTRA_OECONF_append_class-native = " --disable-inhibit-plugin"