`systemctl` reports `System has not been booted with systemd as init system (PID 1). Can't operate.`
IntermediateTroubleshootingBoot, time, cron and kernel
Answer
Likely causes → You're inside a container, a chroot or WSL instance without systemd, where PID 1 is something else.
Diagnose →
ps -p 1 -o comm=
cat /proc/1/cgroup | head -3
Fix → In containers, run processes directly or use the image's entrypoint. In a chroot (rescue), use systemctl --root=/mnt/sysroot enable foo for offline changes. On WSL, enable systemd in /etc/wsl.conf ([boot] systemd=true).
Prevent → Don't rely on systemd in container images.
More on Boot, time, cron and kernel
After a reboot the server drops to `You are in emergency mode. After logging in, type "journalctl -xb" to view system logs`.IntermediateBoot stops at `dracut-initqueue: Warning: dracut-initqueue timeout - starting timeout scripts` and then a `dracut:/#` shell.AdvancedA server shows a `grub>` prompt instead of booting.AdvancedThe kernel panics at boot: `Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)`.AdvancedBoot hangs for 90 seconds with `A start job is running for dev-disk-by\x2duuid-...device (1min 30s)`.IntermediateLogs from different servers are out of order and `timedatectl` shows `System clock synchronized: no` and `NTP service: inactive`.Beginner