From b2c46b1c3fa4e565d88b95ccf23b95d809499b45 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 20 Jun 2023 09:19:49 +0200 Subject: [PATCH] automount.service: Start before basic.target Currently, automount.service races with mxstartup.service. mxstartup itself and also the services it starts, expect paths like /pkg to be available. So make automount namespace part of basic.target. Normal Services order after basic.target by default. --- misc_systemd_units/automount.service | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/misc_systemd_units/automount.service b/misc_systemd_units/automount.service index b7218a2..c4d1ded 100644 --- a/misc_systemd_units/automount.service +++ b/misc_systemd_units/automount.service @@ -1,7 +1,10 @@ [Unit] -Requires=basic.target -After=basic.target +DefaultDependencies=no + +Requires=sysinit.target +After=sysinit.target +Before=basic.target [Service] Type=forking @@ -12,5 +15,5 @@ ExecReload=/bin/kill -HUP $MAINPID Restart=always [Install] -WantedBy=multi-user.target +WantedBy=basic.target