You are not logged in.

#1 2012-12-16 08:40:58

leniviy
Member
Registered: 2009-05-23
Posts: 177

[SOLVED] systemd .device units

Hi. Please tell me why not all devices under /dev have a device unit.
For example, the command 'systemctl start dev-sda.device' executes fine and 'systemctl start dev-null.device' fails with a timeout.

Last edited by leniviy (2012-12-16 17:27:51)


Arch 64, xfce4

Offline

#2 2012-12-16 14:20:27

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED] systemd .device units

from my understanding, device units are only needed for ordering (e.g. mount units are ordered after the device that is being mounted). I don't see how /dev/null would be needed for ordering on bootup and I think /dev/null is already created by the kernel before systemd is even started anyway.

I don't really see what effect starting a device unit would/should have. What are you actually trying to do?

Offline

#3 2012-12-16 15:00:43

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: [SOLVED] systemd .device units

I have timeouts waiting for dev-mapper-*.device or dev-disk-by*.device when systemd is trying to mount local file systems

Last edited by leniviy (2012-12-16 15:10:54)


Arch 64, xfce4

Offline

#4 2012-12-16 15:19:14

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] systemd .device units

Seems like you're trying to vaguely rehash https://bbs.archlinux.org/viewtopic.php?id=154633

You're using dmraid. There's tons of info on these forums about dmraid and systemd.

Offline

#5 2012-12-16 16:39:55

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: [SOLVED] systemd .device units

falconindy wrote:

Seems like you're trying to vaguely rehash https://bbs.archlinux.org/viewtopic.php?id=154633

No, I asked a different question. But some people tend to ask "why are you asking" instead of helping.


Arch 64, xfce4

Offline

#6 2012-12-16 16:52:30

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] systemd .device units

Fine, a direct answer to your question -- because the device is tagged for systemd by a udev rule, and it therefore creates a .device unit. See /lib/udev/rules.d/99-systemd.rules.

Offline

#7 2012-12-21 22:37:35

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: [SOLVED] systemd .device units

falconindy wrote:

There's tons of info on these forums about dmraid and systemd.

falconindy please download the virtualbox image from that thread https://bbs.archlinux.org/viewtopic.php?id=154633
I'm really stuck.


Arch 64, xfce4

Offline

Board footer

Powered by FluxBB