Browse Source

fix(06dbus): do not hardcode path to systemd unit

Use $systemdsystemunitdir instead /usr/lib/systemd/system.
master
Alexey Shabalin 4 years ago committed by Jóhann B. Guðmundsson
parent
commit
7b3c6e1bb0
  1. 4
      modules.d/06dbus/module-setup.sh

4
modules.d/06dbus/module-setup.sh

@ -59,12 +59,12 @@ install() {
Conflicts=shutdown.target\ Conflicts=shutdown.target\
Before=shutdown.target Before=shutdown.target
/^\[Socket\]/aRemoveOnStop=yes' \ /^\[Socket\]/aRemoveOnStop=yes' \
"$initdir"/usr/lib/systemd/system/dbus.socket "$initdir$systemdsystemunitdir/dbus.socket"


#We need to make sure that systemd-tmpfiles-setup.service->dbus.socket will not wait local-fs.target to start, #We need to make sure that systemd-tmpfiles-setup.service->dbus.socket will not wait local-fs.target to start,
#If swap is encrypted, this would make dbus wait the timeout for the swap before loading. This could delay sysinit #If swap is encrypted, this would make dbus wait the timeout for the swap before loading. This could delay sysinit
#services that are dependent on dbus.service. #services that are dependent on dbus.service.
sed -i -Ee \ sed -i -Ee \
'/^After/s/(After[[:space:]]*=.*)(local-fs.target[[:space:]]*)(.*)/\1-\.mount \3/' \ '/^After/s/(After[[:space:]]*=.*)(local-fs.target[[:space:]]*)(.*)/\1-\.mount \3/' \
"$initdir"/usr/lib/systemd/system/systemd-tmpfiles-setup.service "$initdir$systemdsystemunitdir/systemd-tmpfiles-setup.service"
} }

Loading…
Cancel
Save