meta-imx/meta-imx-bsp/recipes-core/systemd/systemd_%.bbappend
Tom Hochstein d13f816f3a systemd: Restore sysvinit compatibility
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2024-10-21 07:30:44 -05:00

30 lines
1.0 KiB
Plaintext

FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
SRC_URI += "file://0001-units-systemd-udevd-Set-PrivateMounts-to-no.patch \
file://0020-logind.conf-Set-HandlePowerKey-to-ignore.patch \
file://69-unmanage.network"
PACKAGECONFIG:append = " sysvinit"
PACKAGECONFIG[unmanaged-network] = ""
do_install:append () {
# Disable the assignment of the fixed network interface name
install -d ${D}${sysconfdir}/systemd/network
ln -s /dev/null ${D}${sysconfdir}/systemd/network/99-default.link
# Configure the network as unmanaged
if [ "${@bb.utils.filter('PACKAGECONFIG', 'unmanaged-network', d)}" ]; then
install -Dm 0644 ${UNPACKDIR}/69-unmanage.network ${D}${sysconfdir}/systemd/network/
fi
# Add special touchscreen rules
if [ -e ${D}${sysconfdir}/udev/rules.d/touchscreen.rules ]; then
cat <<EOF >>${D}${sysconfdir}/udev/rules.d/touchscreen.rules
# i.MX specific touchscreen rules
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"
EOF
fi
}