Bug#769186: More about this issue

Javier Barroso javibarroso at gmail.com
Mon Dec 29 23:35:51 GMT 2014


So , mountnfs sctipt is the script that use NetworkManager Dispatcher
to mount curlftpfs system.

After disabling that script, we can see at dmesg that mnt-usb.mount
tries to be executed before than wpa_supplicant.service:

[    4.532920] systemd[1]: Installed new job mnt-usb.mount/start as 101
[    4.558642] systemd[1]: mnt-usb.mount changed dead -> mounting
[    4.658487] systemd[1]: Child 203 belongs to mnt-usb.mount
[    4.658493] systemd[1]: mnt-usb.mount mount process exited,
code=exited status=1
[    4.658564] systemd[1]: mnt-usb.mount changed mounting -> failed
[    4.658649] systemd[1]: Job mnt-usb.mount/start finished, result=failed
[    4.659476] systemd[1]: Unit mnt-usb.mount entered failed state.
[    9.241461] systemd[1]: Trying to enqueue job
wpa_supplicant.service/start/replace
[    9.241867] systemd[1]: Installed new job
wpa_supplicant.service/start as 1246
[    9.241873] systemd[1]: Enqueued job wpa_supplicant.service/start as 1246

I'm not sure why is it.

If I read the man page correctly, to know in which order units are launched:

# systemctl list-dependencies --before wpa_supplicant.service | grep mnt-usb
● │ ├─mnt-usb.mount
● │   ├─mnt-usb.mount

So mnt-usb.mount should be started "after" that wpa_supplicant , is not?

 --before
           With list-dependencies, show the units that are ordered
after the specified unit.

So, why mnt-usb is running before that wpa_supplicant ?

As commented on upstream bug, I modified wpa-supplicant.service as follow:

# systemctl cat wpa_supplicant.service
# /lib/systemd/system/wpa_supplicant.service
[Unit]
Description=WPA supplicant
Before=network.target

[Service]
Type=dbus
BusName=fi.epitest.hostap.WPASupplicant
ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant

[Install]
WantedBy=multi-user.target
Alias=dbus-fi.epitest.hostap.WPASupplicant.service

Thank you



More information about the Pkg-systemd-maintainers mailing list