From 9371e6f3e04b03692c23e392fdf005a08ccf1edb Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 12 Oct 2011 02:02:16 +0200 Subject: [PATCH] systemd: use ConditionCapability=CAP_MKNOD instead of ConditionVirtualization=!container --- init/udev-control.socket | 2 +- init/udev-kernel.socket | 2 +- init/udev.service.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init/udev-control.socket b/init/udev-control.socket index ea21803f..858ddffd 100644 --- a/init/udev-control.socket +++ b/init/udev-control.socket @@ -1,7 +1,7 @@ [Unit] Description=udev Control Socket DefaultDependencies=no -ConditionVirtualization=!container +ConditionCapability=CAP_MKNOD [Socket] Service=udev.service diff --git a/init/udev-kernel.socket b/init/udev-kernel.socket index b6d1c88c..1c554537 100644 --- a/init/udev-kernel.socket +++ b/init/udev-kernel.socket @@ -1,7 +1,7 @@ [Unit] Description=udev Kernel Socket DefaultDependencies=no -ConditionVirtualization=!container +ConditionCapability=CAP_MKNOD [Socket] Service=udev.service diff --git a/init/udev.service.in b/init/udev.service.in index 0a3f6286..00072181 100644 --- a/init/udev.service.in +++ b/init/udev.service.in @@ -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 -- 2.39.5