aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 6a626533..18368b08 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -80,6 +80,13 @@ if strstr "$cmdline" failsafe ; then
SPEEDBOOT=no
fi
+# Check to see if systemd is used as the init system and disable speedboot as it
+# generally messes things up (manifests itself as user permission problems,
+# especially with autologins).
+if [ "$SPEEDBOOT" != "no" ] && [ -f /proc/1/comm ] && [ "$(cat /proc/1/comm)" = "systemd" ]; then
+ SPEEDBOOT=no
+fi
+
# Check if a possible DKMS display driver is queued to be built on this boot
# or an interfering driver was loaded by initrd.
if [ "$SPEEDBOOT" != "no" ] && [ -x /sbin/display_driver_helper ] && ! /sbin/display_driver_helper --check-speedboot; then