I'm repacking a Debian Buster Live ISO. I first unpack the
chroot in the unsquashed system, make my changes.
I want my ISO to autologin (terminal). I've followed this techniques, but I failed because I get the error:
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
So I can't use
systemctl, which throws this error.
The answers I've found here to bypass the error say to use
service instead of
systemctl, which doesn't apply in my case.
Is poosible to autologin using another technique?
Is possible to get
systemctl functioning inside a
chroot, so I can apply above technique?
I created the file
/lib/systemd/system and made a sysmlink in
/etc/systemd/system/multi-user.target.wants/. The contents of the file.
[Service] ExecStart= ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
This got me into autologin. I'll wait for insight before answer my own question.