#882796 joystick: Restore joystick settings via udev fails befor /var mounted

Package:
joystick
Source:
joystick
Description:
set of testing and calibration tools for joysticks
Submitter:
Michal Kašpar
Date:
2017-11-26 21:24:04 UTC
Severity:
normal
#882796#5
Date:
2017-11-26 20:38:43 UTC
From:
To:
Dear Maintainer,
My stored joystick settings aren't restored on system boot via supplied
udev rules because the rules run before the /var filesystem is mounted
and the configuration is stored on the /var filesystem
(/var/lib/joystick).
I'm using systemd as an init and the boot log (journalctl) contains
lines:
Nov 26 21:03:00 shiva systemd-udevd[792]: Process '/usr/bin/jscal-restore /dev/input/js0' failed with exit code 1.
Nov 26 21:03:00 shiva systemd-udevd[801]: Process '/usr/bin/jscal-restore /dev/input/js1' failed with exit code 1.
...
Nov 26 21:03:01 shiva systemd[1]: Mounting /var...
Nov 26 21:03:02 shiva systemd[1]: Mounted /var.
So it seems the jscal-restore fails because it can't find it's stored
joysticks state.