units: start vconsole-setup only if there's actually a virtual console device
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 00:51:16 +0000 (02:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 10:58:19 +0000 (12:58 +0200)
units/systemd-vconsole-setup.service.in

index ef222a5..1420ce8 100644 (file)
@@ -11,6 +11,7 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service
 Before=sysinit.target shutdown.target
+ConditionPathExists=/dev/tty0
 
 [Service]
 Type=oneshot