]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: synchronize Makefile and presets settings
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Aug 2016 05:55:16 +0000 (01:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Aug 2016 13:55:55 +0000 (09:55 -0400)
Enable reboot.target and disable exit.target: the first is used on normal
machines, the second only in containers, and the more general one
should be enabled by default.

Also fix the Makefile to match what preset-all does.

With this and the previous commits, doing "make instal DESTDIR=…" followed
by "systemctl preset-all --root=…" doesn't result in any changes.

Makefile.am
system-preset/90-systemd.preset

index d4e3e9a0138104fe185f12eb111458eb6e9a7005..bc615bdc3b93984cb5afbfa10a559e9f29dbb0d4 100644 (file)
@@ -634,6 +634,10 @@ EXTRA_DIST += \
        units/rc-local.service.in \
        units/halt-local.service.in
 
+GENERAL_ALIASES += \
+       $(systemunitdir)/reboot.target $(pkgsysconfdir)/system/ctrl-alt-del.target \
+       $(systemunitdir)/machines.target $(pkgsysconfdir)/system/multi-user.target.wants/machines.target
+
 # automake is broken and can't handle files with a dash in front
 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
 units-install-hook:
index 09f920a5f7d5dd99def0919056bfe1f03f6787b7..0f494b75527ea137227a014d4f0f2d56a9113396 100644 (file)
@@ -24,8 +24,9 @@ disable debug-shell.service
 disable halt.target
 disable kexec.target
 disable poweroff.target
-disable reboot.target
+enable reboot.target
 disable rescue.target
+disable exit.target
 
 disable syslog.socket