systemd: We do not want to run the dbus-daemon, do not install the service
We have no other dbus users, do not install the dbus.service and dbus.socket by default. It only leads to wasting a bit of ram.
This commit is contained in:
parent
e1acffbebc
commit
f4bf38e765
|
@ -0,0 +1,31 @@
|
|||
S_THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:"
|
||||
|
||||
PRINC="12"
|
||||
|
||||
# Disable depedency on dbus
|
||||
RDEPENDS_${PN} = ""
|
||||
|
||||
|
||||
# TODO: disable systemd-logind as it needs dbus
|
||||
SYSTEMD_DISABLED_NATIVE_SERVICES = " \
|
||||
systemd-logind \
|
||||
"
|
||||
|
||||
pkg_postinst_${PN}_append () {
|
||||
cd $D${sysconfdir}/init.d
|
||||
|
||||
echo "Disabling the following native services: "
|
||||
|
||||
OPTS=""
|
||||
|
||||
if [ -n "$D" ]; then
|
||||
OPTS="--root=$D"
|
||||
fi
|
||||
|
||||
for i in ${SYSTEMD_DISABLED_NATIVE_SERVICES} ; do
|
||||
if [ \( -e $i -o $i.sh \) -a ! -e $D${sysconfdir}/systemd/system/$i.service ] ; then
|
||||
echo -n "$i: " ; systemctl ${OPTS} mask $i.service
|
||||
fi
|
||||
done ; echo
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
require recipes-fixes/${PN}/${PN}_sysmocom.inc
|
Loading…
Reference in New Issue