mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
units: add explicit dependency on display-manager.service to graphical.target
This replaces the symlink based dependency by an explicit one in the unit file so that we avoid the dangling symlink when no display manager is installed.
This commit is contained in:
parent
27fda47f40
commit
5231084b47
@ -3389,9 +3389,6 @@ if TARGET_FEDORA
|
|||||||
rm -f display-manager.service single.service && \
|
rm -f display-manager.service single.service && \
|
||||||
$(LN_S) prefdm.service display-manager.service && \
|
$(LN_S) prefdm.service display-manager.service && \
|
||||||
$(LN_S) rescue.service single.service )
|
$(LN_S) rescue.service single.service )
|
||||||
( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
|
|
||||||
rm -f display-manager.service && \
|
|
||||||
$(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if TARGET_MANDRIVA
|
if TARGET_MANDRIVA
|
||||||
@ -3400,9 +3397,6 @@ if TARGET_MANDRIVA
|
|||||||
$(LN_S) prefdm.service display-manager.service && \
|
$(LN_S) prefdm.service display-manager.service && \
|
||||||
$(LN_S) prefdm.service dm.service && \
|
$(LN_S) prefdm.service dm.service && \
|
||||||
$(LN_S) rescue.service single.service )
|
$(LN_S) rescue.service single.service )
|
||||||
( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
|
|
||||||
rm -f display-manager.service && \
|
|
||||||
$(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if TARGET_DEBIAN_OR_UBUNTU
|
if TARGET_DEBIAN_OR_UBUNTU
|
||||||
@ -3422,9 +3416,6 @@ if TARGET_MAGEIA
|
|||||||
rm -f display-manager.service && \
|
rm -f display-manager.service && \
|
||||||
$(LN_S) prefdm.service display-manager.service && \
|
$(LN_S) prefdm.service display-manager.service && \
|
||||||
$(LN_S) prefdm.service dm.service )
|
$(LN_S) prefdm.service dm.service )
|
||||||
( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
|
|
||||||
rm -f display-manager.service && \
|
|
||||||
$(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install-exec-hook: $(INSTALL_EXEC_HOOKS)
|
install-exec-hook: $(INSTALL_EXEC_HOOKS)
|
||||||
|
7
TODO
7
TODO
@ -25,6 +25,8 @@ Bugfixes:
|
|||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
|
* systemctl list-unit-files appears to be broken for symlinked units in /usr/lib
|
||||||
|
|
||||||
* maybe allow services with ExecStop= set, but no ExecStart=?
|
* maybe allow services with ExecStop= set, but no ExecStart=?
|
||||||
|
|
||||||
* efi: implement /forcefsck as uefi variables thus not requiring file system altering to trigger a file system check
|
* efi: implement /forcefsck as uefi variables thus not requiring file system altering to trigger a file system check
|
||||||
@ -66,8 +68,6 @@ Features:
|
|||||||
|
|
||||||
* readahead: when bumping /sys readahead variable save mtime and compare later to detect changes
|
* readahead: when bumping /sys readahead variable save mtime and compare later to detect changes
|
||||||
|
|
||||||
* Document boot options such as forcefsck
|
|
||||||
|
|
||||||
* (attempt to) make Debianites happy:
|
* (attempt to) make Debianites happy:
|
||||||
- implement .d/ auto includes for unit files
|
- implement .d/ auto includes for unit files
|
||||||
- add syntax to reset ExecStart= lists (and similar)
|
- add syntax to reset ExecStart= lists (and similar)
|
||||||
@ -165,8 +165,6 @@ Features:
|
|||||||
|
|
||||||
* support chrony in addition to ntpd in timedated
|
* support chrony in addition to ntpd in timedated
|
||||||
|
|
||||||
* document crypttab(5)
|
|
||||||
|
|
||||||
* There's currently no way to cancel fsck (used to be possible via C-c or c on the console)
|
* There's currently no way to cancel fsck (used to be possible via C-c or c on the console)
|
||||||
|
|
||||||
* journal: sanely deal with entries which are larger than the individual file size, but where the componets would fit
|
* journal: sanely deal with entries which are larger than the individual file size, but where the componets would fit
|
||||||
@ -310,7 +308,6 @@ Features:
|
|||||||
- resource control in systemd
|
- resource control in systemd
|
||||||
- inhibiting
|
- inhibiting
|
||||||
- testing with Harald's awesome test kit
|
- testing with Harald's awesome test kit
|
||||||
- the Documentation=
|
|
||||||
|
|
||||||
* allow port=0 in .socket units
|
* allow port=0 in .socket units
|
||||||
|
|
||||||
|
@ -147,18 +147,18 @@
|
|||||||
v
|
v
|
||||||
basic.target
|
basic.target
|
||||||
|
|
|
|
||||||
_________________/| emergency.service
|
__________________________________/| emergency.service
|
||||||
/ | |
|
/ | | |
|
||||||
| | v
|
| | | v
|
||||||
v v <emphasis>emergency.target</emphasis>
|
v v v <emphasis>emergency.target</emphasis>
|
||||||
(various system (various system
|
display- (various system (various system
|
||||||
services services)
|
manager.service services services)
|
||||||
required for |
|
| required for |
|
||||||
graphical UIs) v
|
| graphical UIs) v
|
||||||
| <emphasis>multi-user.target</emphasis>
|
| | <emphasis>multi-user.target</emphasis>
|
||||||
| |
|
| | |
|
||||||
| _________________/
|
\_______________ | _________________/
|
||||||
|/
|
\|/
|
||||||
v
|
v
|
||||||
<emphasis>graphical.target</emphasis></programlisting>
|
<emphasis>graphical.target</emphasis></programlisting>
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ Documentation=man:systemd.special(7)
|
|||||||
Requires=multi-user.target
|
Requires=multi-user.target
|
||||||
After=multi-user.target
|
After=multi-user.target
|
||||||
Conflicts=rescue.target
|
Conflicts=rescue.target
|
||||||
|
Wants=display-manager.service
|
||||||
AllowIsolate=yes
|
AllowIsolate=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user