What am I running:
Raspberry Pi OS Lite v5.4 -
Linux raspberrypi 5.4.83-v7l+ - on a Raspberry Pi 4B
When I tried to add a systemd service, and run into the error (happens with any
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
As far as I understand systemd should be used as default when booting.
I followed the instructions here and ran
sudo stat /proc/1/exe I see that it is not systemd (which I suppose should point to
File: /proc/1/exe -> /usr/sbin/init Size: 0 Blocks: 0 IO Block: 1024 symbolic link
I initially did not change anything in the boot configuration - is this expected behaviour?
Since I wanted to change it to boot with systemd I tried to add the
init parameter to the kernel parameters in
/boot/cmdline.txt. I added it like this:
console=serial0,115200 console=tty1 root=PARTUUID=10ded32f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait init=/bin/systemd
But when I do this the raspberry fails to start.
Any ideas how I could change it to use systemd?