I'm analyzing the systemd and I want to improve my system's booting speed.The number one service in the blame list of systemd-analyze by a clear gap is udisks2.service with almost 10 seconds ( those numbers might be misleading because of the dependencies but udisks doesn't have any ) . It's not a good solution to disable it since it's needed by another service :
$ cat /lib/systemd/system/udisks2.service
...
[Install]
WantedBy=graphical.target
I also tried disabling it in a test instance of ubuntu in VirtualBox , it booted completely and without problem but once the dbus-daemon got initialized , it automatically started it.
From man udisksd :
Users or administrators should never need to start this daemon as it will be automatically started by dbus-daemon(1) or systemd(1) whenever an application tries to access its D-Bus interfaces
In the `udisks2.conf` manpage it is stated that you can set the `modules_load_preference` option to `ondemand` and by default it is. It seems that currently it's in the most optimum form.
So the question is "Is it possible to safely speedup the execution of /usr/lib/udisks2/udisksd ?
Any suggestion would be appreciated.