I'm repacking a Debian Buster Live ISO. I first unpack the filesystem.squashfs
, then 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?
Tentative answer:
I created the file getty@tty.service
under /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.
systemctl
, wich gives me the error I posted in the question.