[systemd-devel] Mount unit using device symlink

Patrick Hemmer systemd at stormcloud9.net
Mon Aug 4 19:41:25 PDT 2014


*From:* Andrey Borzenkov <arvidjaar at gmail.com>
*Sent:* 2014-08-04 22:24:57 EDT
*To:* Patrick Hemmer <systemd at stormcloud9.net>
*CC:* systemd-devel at lists.freedesktop.org
*Subject:* Re: [systemd-devel] Mount unit using device symlink

> В Mon, 04 Aug 2014 15:43:46 -0400
> Patrick Hemmer <systemd at stormcloud9.net> пишет:
>
>> 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
>>
> Check with "systemctl list-units --all --full". 
>
# systemctl list-units --all --full | grep 'xvdb\|ephemeral0'
 
dev-xvdb.device                                                                
loaded    active   plugged   /dev/xvdb
 
sys-devices-vbd\x2d2064-block-xvdb.device                                      
loaded    active   plugged   /sys/devices/vbd-2064/block/xvdb

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140804/93f57fc1/attachment.html>


More information about the systemd-devel mailing list