<html>
<head>
<meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
</head>
<body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
<br>
<div id="smartTemplate4-quoteHeader">
<div><b>From:</b> Andrey Borzenkov <a class="moz-txt-link-rfc2396E" href="mailto:arvidjaar@gmail.com"><arvidjaar@gmail.com></a></div>
<div><b>Sent:</b> 2014-08-04 22:24:57 EDT </div>
<div><b>To:</b> Patrick Hemmer <a class="moz-txt-link-rfc2396E" href="mailto:systemd@stormcloud9.net"><systemd@stormcloud9.net></a></div>
<div><b>CC:</b> <a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a></div>
<div><b>Subject:</b> Re: [systemd-devel] Mount unit using device
symlink</div>
<br>
</div>
<blockquote cite="mid:20140805062457.2615e823@opensuse.site"
type="cite">
<pre wrap="">χ Mon, 04 Aug 2014 15:43:46 -0400
Patrick Hemmer <a class="moz-txt-link-rfc2396E" href="mailto:systemd@stormcloud9.net"><systemd@stormcloud9.net></a> ΠΙΫΕΤ:
</pre>
<blockquote type="cite">
<pre wrap="">I'm trying to mount a device using one of its symlinks, but systemd
errors with "Timed out waiting for device dev-block-ec2-ephemeral0.device"
The unit looks like:
[Unit]
After=ephemeral0-format.service
[Mount]
What=/dev/block/ec2/ephemeral0
Where=/mnt/ephemeral0
/dev/block/ec2/ephemeral0 is a symlink set up by udev:
# udevadm info -q symlink -n /dev/xvdb
block/ec2/ephemeral0 disk/by-uuid/d57e2dd9-0062-448c-a914-0b6df045dafb
# ls -l /dev/block/ec2/ephemeral0
lrwxrwxrwx 1 root root 10 Aug 4 16:59 /dev/block/ec2/ephemeral0 ->
../../xvdb
systemd automatically creates a unit for the /sys path, but not the symlink:
# systemctl list-units | grep 'xvdb\|ephemeral0'
sys-devices-vbd\x2d2064-block-xvdb.device loaded
active plugged /sys/devices/vbd-2064/block/xvdb
</pre>
</blockquote>
<pre wrap="">
Check with "systemctl list-units --all --full".
</pre>
</blockquote>
<tt># systemctl list-units --all --full | grep 'xvdb\|ephemeral0'</tt><tt><br>
</tt><tt>
dev-xvdb.device
loaded active plugged /dev/xvdb</tt><tt><br>
</tt><tt>
sys-devices-vbd\x2d2064-block-xvdb.device
loaded active plugged /sys/devices/vbd-2064/block/xvdb</tt><br>
<br>
</body>
</html>