[systemd] create getty at tty1.service instead of a broken getty at .service
Kay Sievers
kay at fedoraproject.org
Tue Aug 6 13:00:16 UTC 2013
commit ac639945fe4190bf9654f80168c3e93207d50871
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Aug 6 14:54:23 2013 +0200
create getty at tty1.service instead of a broken getty at .service
Also push all default units to enable through the preset
list.
90-default.preset | 6 ++++++
systemd.spec | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/90-default.preset b/90-default.preset
index db9dffd..333a6e1 100644
--- a/90-default.preset
+++ b/90-default.preset
@@ -1,6 +1,12 @@
# Also see:
# https://fedoraproject.org/wiki/Starting_services_by_default
+# systemd
+enable remote-fs.target
+enable getty at tty1.service
+enable systemd-readahead-replay.service
+enable systemd-readahead-collect.service
+
# System stuff
enable sshd.service
enable atd.*
diff --git a/systemd.spec b/systemd.spec
index 846c014..cc98354 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -382,9 +382,9 @@ if [ $1 -eq 1 ] ; then
# And symlink what we found to the new-style default.target
ln -sf "$target" /etc/systemd/system/default.target >/dev/null 2>&1 || :
- # Enable the services we install by default.
- systemctl enable \
- getty at .service \
+ # Services we install by default, and which are controlled by presets.
+ systemctl preset \
+ getty at tty1.service \
remote-fs.target \
systemd-readahead-replay.service \
systemd-readahead-collect.service >/dev/null 2>&1 || :
More information about the scm-commits
mailing list