From 5b214f61b9b82998bf13f4bfd16fe4e2cd29c086 Mon Sep 17 00:00:00 2001 From: Loic Poulain Date: Tue, 10 Jun 2025 14:58:52 +0200 Subject: [PATCH] rmtfs.service: Fix start/stop ordering between rmtfs and NetworkManager Since rmtfs typically provides resources for wireless and modem-related processors, it's important to ensure that this service starts before and stops after NetworkManager. On platforms like QCOM RB1, this sequencing prevents the Wi-Fi interface(s) from being left in a dangling state while NetworkManager attempts to tear down the interface(s): https://github.com/qualcomm-linux/qcom-deb-images/issues/40#issuecomment-2944265370 The 'Before' dependency directive is ignored if NetworkManager is disabled or absent. Signed-off-by: Loic Poulain --- rmtfs-dir.service.in | 1 + rmtfs.service.in | 1 + 2 files changed, 2 insertions(+) diff --git a/rmtfs-dir.service.in b/rmtfs-dir.service.in index 931b955..2e23d87 100644 --- a/rmtfs-dir.service.in +++ b/rmtfs-dir.service.in @@ -1,5 +1,6 @@ [Unit] Description=Qualcomm remotefs service +Before=NetworkManager.service [Service] ExecStart=RMTFS_PATH/rmtfs -s -o RMTFS_EFS_PATH diff --git a/rmtfs.service.in b/rmtfs.service.in index abd12df..2dc08df 100644 --- a/rmtfs.service.in +++ b/rmtfs.service.in @@ -1,5 +1,6 @@ [Unit] Description=Qualcomm remotefs service +Before=NetworkManager.service [Service] ExecStart=RMTFS_PATH/rmtfs -r -P -s