Change systemd default target to multi-user.target
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 27 Jan 2017 11:03:18 +0000 (12:03 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 27 Jan 2017 11:19:18 +0000 (12:19 +0100)
The default target used to be graphical.target which is not appropriate
for Grml

etc/grml/fai/config/scripts/GRMLBASE/15-initsetup

index 3cf057c..6241d47 100755 (executable)
@@ -24,6 +24,7 @@ systemd_setup() {
   $ROOTCMD systemctl mask systemd-machine-id-commit.service || echo "failed to mask $systemd-machine-id-commit.service"
   $ROOTCMD systemctl preset-all
 
   $ROOTCMD systemctl mask systemd-machine-id-commit.service || echo "failed to mask $systemd-machine-id-commit.service"
   $ROOTCMD systemctl preset-all
 
+  $ROOTCMD systemctl set-default multi-user.target
   # TODO ->
 
   # * avoid startup of any LSB scripts; NOTE: jessie doesn't support that
   # TODO ->
 
   # * avoid startup of any LSB scripts; NOTE: jessie doesn't support that