mirror of
https://git.yoctoproject.org/poky
synced 2026-04-02 17:02:21 +02:00
The nfs init scripts have both systemd and sysvinit versions with non-matching names so we need to mask out the duplicate scripts else we see NFS errors on bootup. (From OE-Core rev: 6fadb3f27c48bb92f9f9de5977707a6b244aac54) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
42 lines
849 B
BlitzBasic
42 lines
849 B
BlitzBasic
SUMMARY = "Enhances systemd compatilibity with existing SysVinit scripts"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
|
|
|
|
PR = "r18"
|
|
|
|
DEPENDS = "systemd-systemctl-native"
|
|
|
|
inherit allarch
|
|
|
|
ALLOW_EMPTY_${PN} = "1"
|
|
|
|
SYSTEMD_DISABLED_SYSV_SERVICES = " \
|
|
busybox-udhcpc \
|
|
hwclock \
|
|
networking \
|
|
nfsserver \
|
|
nfscommon \
|
|
syslog.busybox \
|
|
"
|
|
|
|
pkg_postinst_${PN} () {
|
|
cd $D${sysconfdir}/init.d
|
|
|
|
echo "Disabling the following sysv scripts: "
|
|
|
|
OPTS=""
|
|
|
|
if [ -n "$D" ]; then
|
|
OPTS="--root=$D"
|
|
fi
|
|
|
|
for i in ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do
|
|
if [ \( -e $i -o $i.sh \) -a ! \( -e $D${sysconfdir}/systemd/system/$i.service -o -e $D${systemd_unitdir}/system/$i.service \) ] ; then
|
|
echo -n "$i: " ; systemctl ${OPTS} mask $i.service
|
|
fi
|
|
done ; echo
|
|
}
|
|
|
|
RDPEPENDS_${PN} = "systemd"
|