aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit6
1 files changed, 4 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 6b1baf0f..be1985e6 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -87,8 +87,10 @@ 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
+if [ "$SPEEDBOOT" != "no" ]; then
+ if /bin/mountpoint -q /sys/fs/cgroup/systemd; then
+ SPEEDBOOT=no
+ fi
fi
# Check if a possible DKMS display driver is queued to be built on this boot