- # FIXME - ssh-bootoption is currently broken
- # $ROOTCMD systemctl enable ssh-bootoption.service || echo "failed to enable ssh-bootoption.service"
+ case "$(cat "${target}"/etc/debian_version)" in
+ 8.*)
+ echo "Debian jessie detected. Enabling workaround for unknown systemctl preset-all/set-default exit failure."
+ $ROOTCMD systemctl preset-all || true
+ $ROOTCMD systemctl set-default grml-boot.target || true
+ ;;
+ *)
+ # workaround for #992847 to workaround /lib/systemd -> /usr/lib/systemd transition
+ $ROOTCMD rm -f /etc/systemd/system/syslog.service