summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2013-06-10 13:20:25 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-06-10 13:20:25 +0200
commit7c4714bf9042d38d0540780d5fb4b33c06a25ab8 (patch)
treeb8e25b0b38337110d962e625f2486fae57302760
parent19c956a81561cac9dc3127ec81fd94edc09071d6 (diff)
downloadptxdist-7c4714bf9042d38d0540780d5fb4b33c06a25ab8.tar.gz
ptxdist-7c4714bf9042d38d0540780d5fb4b33c06a25ab8.tar.xz
systemd: only start a getty on tty1 if virtual console support is enabled
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/systemd.make3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/systemd.make b/rules/systemd.make
index 54be98c05..a56a40ede 100644
--- a/rules/systemd.make
+++ b/rules/systemd.make
@@ -115,6 +115,9 @@ $(STATEDIR)/systemd.install:
ifdef PTXCONF_UDEV_HWDB
@udevadm hwdb --update --root $(SYSTEMD_PKGDIR)
endif
+ifndef PTXCONF_SYSTEMD_VCONSOLE
+ @rm -v $(SYSTEMD_PKGDIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
+endif
@$(call touch)
# ----------------------------------------------------------------------------