chiark / gitweb /
systemd: use ConditionCapability=CAP_MKNOD instead of ConditionVirtualization=!container
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 12 Oct 2011 00:02:16 +0000 (02:02 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 12 Oct 2011 00:02:16 +0000 (02:02 +0200)
init/udev-control.socket
init/udev-kernel.socket
init/udev.service.in

index ea21803..858ddff 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=udev Control Socket
 DefaultDependencies=no
-ConditionVirtualization=!container
+ConditionCapability=CAP_MKNOD
 
 [Socket]
 Service=udev.service
index b6d1c88..1c55453 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=udev Kernel Socket
 DefaultDependencies=no
-ConditionVirtualization=!container
+ConditionCapability=CAP_MKNOD
 
 [Socket]
 Service=udev.service
index 0a3f628..0007218 100644 (file)
@@ -4,7 +4,7 @@ Wants=udev-control.socket udev-kernel.socket
 After=udev-control.socket udev-kernel.socket
 Before=basic.target
 DefaultDependencies=no
-ConditionVirtualization=!container
+ConditionCapability=CAP_MKNOD
 
 [Service]
 Type=notify