<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
I'm trying to mount a device using one of its symlinks, but systemd
errors with "<tt>Timed out waiting for device
dev-block-ec2-ephemeral0.device</tt>"<br>
<br>
The unit looks like:<br>
<tt> [Unit]</tt><tt><br>
</tt><tt> After=ephemeral0-format.service</tt><tt><br>
</tt><tt> [Mount]</tt><tt><br>
</tt><tt> What=/dev/block/ec2/ephemeral0</tt><tt><br>
</tt><tt> Where=/mnt/ephemeral0</tt><br>
<br>
/dev/block/ec2/ephemeral0 is a symlink set up by udev:<br>
<tt> # udevadm info -q symlink -n /dev/xvdb </tt><tt><br>
</tt><tt> block/ec2/ephemeral0
disk/by-uuid/d57e2dd9-0062-448c-a914-0b6df045dafb</tt><tt><br>
</tt><tt> # ls -l /dev/block/ec2/ephemeral0 </tt><tt><br>
</tt><tt> lrwxrwxrwx 1 root root 10 Aug 4 16:59
/dev/block/ec2/ephemeral0 -> ../../xvdb</tt><br>
<br>
systemd automatically creates a unit for the /sys path, but not the
symlink:<br>
<tt> # systemctl list-units | grep 'xvdb\|ephemeral0'</tt><tt><br>
</tt><tt>
sys-devices-vbd\x2d2064-block-xvdb.device loaded
active plugged /sys/devices/vbd-2064/block/xvdb</tt><br>
<br>
<br>
Any ideas how to get this mount unit working with a symlink?<br>
<br>
-Patrick<br>
</body>
</html>