[packages/systemd] Do not install invalid getty at getty.service unit
jajcus
jajcus at pld-linux.org
Fri Jan 10 10:26:43 CET 2014
commit b45719fbdff635b20723d52237c94c2c0acd475e
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Fri Jan 10 10:00:28 2014 +0100
Do not install invalid getty at getty.service unit
The problem is described here:
https://bugs.mageia.org/show_bug.cgi?id=10931
systemd.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/systemd.spec b/systemd.spec
index c880546..24f3360 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -833,7 +833,6 @@ if [ $1 -eq 1 ]; then
# Enable the services we install by default.
/bin/systemctl enable \
- getty at .service \
network.service \
remote-fs.target \
systemd-readahead-replay.service \
@@ -844,7 +843,6 @@ fi
%preun units
if [ $1 -eq 0 ] ; then
/bin/systemctl disable \
- getty at .service \
network.service \
remote-fs.target \
systemd-readahead-replay.service \
@@ -887,6 +885,12 @@ if [ -f /etc/sysconfig/rpm ]; then
fi
fi
+%triggerpostun units -- systemd-units < 1:208-9
+# remove buggy symlink
+if [ -L /etc/systemd/system/getty.target.wants/getty at .service ] ; then
+ rm -f /etc/systemd/system/getty.target.wants/getty at .service || :
+fi
+
%post inetd
%systemd_reload
# Do not change it to restart, we only want to start new services here
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/36c219eca8f35019861712472aaa2243a17cc868
More information about the pld-cvs-commit
mailing list