meta-digi-dey: replace systemd-udev-settle from BT and ifupdown service

This commit replaces systemd-udev-settle from bluetooth-init and
ifupdown service. Systemd recommends not to use that service and
wait for specifc event or service to sync interfaces.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://onedigi.atlassian.net/browse/DEL-9338
This commit is contained in:
Mike Engel 2026-03-31 13:17:42 +02:00
parent 0c915b99f0
commit 0a307d029e
6 changed files with 15 additions and 3 deletions

View File

@ -159,3 +159,6 @@ BOOTABLE_ARTIFACTS = " \
OVERLAYFS_ETC_MOUNT_POINT ?= "/mnt/data"
OVERLAYFS_ETC_DEVICE ?= "ubi1:data"
OVERLAYFS_ETC_FSTYPE ?= "ubifs"
# Bluetooth
BT_TTY ?= "ttySTM1"

View File

@ -172,3 +172,6 @@ BOOTABLE_ARTIFACTS = " \
OVERLAYFS_ETC_MOUNT_POINT ?= "/mnt/data"
OVERLAYFS_ETC_DEVICE ?= "ubi1:data"
OVERLAYFS_ETC_FSTYPE ?= "ubifs"
# Bluetooth
BT_TTY ?= "ttySTM1"

View File

@ -174,3 +174,6 @@ IMAGE_ROOTFS_MAXSIZE = "2621440"
OVERLAYFS_ETC_MOUNT_POINT ?= "/mnt/data"
OVERLAYFS_ETC_DEVICE ?= "/dev/mmcblk0p11"
OVERLAYFS_ETC_FSTYPE ?= "ext4"
# Bluetooth
BT_TTY ?= "ttySTM1"

View File

@ -28,6 +28,9 @@ do_install() {
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/${BT_INIT_FILE} ${D}${sysconfdir}/bluetooth-init
ln -sf /etc/bluetooth-init ${D}${sysconfdir}/init.d/bluetooth-init
# Set BT UART device
sed -i -e "s,##BT_TTY##,dev-${BT_TTY}.device,g" \
${WORKDIR}/bluetooth-init.service
# SYSTEMD
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/bluetooth-init.service ${D}${systemd_unitdir}/system/bluetooth-init.service

View File

@ -1,7 +1,7 @@
[Unit]
Description=Initialization of the bluetooth chip
ConditionPathIsDirectory=/proc/device-tree/bluetooth
After=systemd-udev-settle.service
After=##BT_TTY##
Before=bluetooth.service
[Service]

View File

@ -1,7 +1,7 @@
[Unit]
Description=Interface initialization via ifupdown
After=systemd-udev-settle.service
Requires=systemd-udev-settle.service
After=systemd-udevd.service
Wants=systemd-udevd.service
[Service]
Type=oneshot