[systemd-devel] Mounting a partition at the *right* time

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Jan 4 07:22:48 PST 2016


On Mon, Jan 04, 2016 at 04:00:30PM +0100, Rainer Dorsch wrote:
> Is that the output of journalctl ?
> 
> http://sprunge.us/LdVV
Yes.

The relevant part is:

Jan 04 15:50:12 OpenELEC systemd[1]: Started Apply Kernel Variables.
Jan 04 15:51:37 OpenELEC systemd[1]: Job dev-mmcblk0p1.device/start timed out.
Jan 04 15:51:37 OpenELEC systemd[1]: Timed out waiting for device dev-mmcblk0p1.device.
Jan 04 15:51:37 OpenELEC systemd[1]: Dependency failed for sdcard mount script.
Jan 04 15:51:37 OpenELEC systemd[1]: Job storage-.kodi-.local-storage-sdcard.mount/start failed with result 'dependency'.
Jan 04 15:51:37 OpenELEC systemd[1]: Job dev-mmcblk0p1.device/start failed with result 'timeout'.
Jan 04 15:51:37 OpenELEC systemd[1]: Starting Create Volatile Files and Directories...

So nothing happens for 1 min 25 s, and systemd is waiting
for the device to appear. This is consistent with the default timeout
of 1 min 30 s, which is set by JobTimeoutSec setting of the *device*
unit (dev-mmcblk0p1.device in this case). Later on the device appears
and systemd starts the storage-.kodi-.local-storage-sdcard.mount
as soon as that happens.

So you need to figure out why the device does not appear in the alloted time.
Does it need more than 1.5 minutes to initialize? Are some modules only
loaded later on or something else prevents the detection from hapenning?

Zbyszek


More information about the systemd-devel mailing list