]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: do not start load-random-seed in containers (#3941)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Aug 2016 15:15:19 +0000 (11:15 -0400)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sat, 13 Aug 2016 15:15:19 +0000 (17:15 +0200)
Random numbers are provided by the host kernel, we don't need to do anything.

https://bugzilla.redhat.com/show_bug.cgi?id=1329124

units/systemd-random-seed.service.in

index 115233268ddd7329dcc7b4a79e40c6a7d26c9ce6..b244a8ce434ff8f9c7992f7992dee98bf716c844 100644 (file)
@@ -13,6 +13,7 @@ RequiresMountsFor=@RANDOM_SEED@
 Conflicts=shutdown.target
 After=systemd-remount-fs.service
 Before=sysinit.target shutdown.target
+ConditionVirtualization=!container
 
 [Service]
 Type=oneshot