I am trying to set up an alpine linux machine that needs to run an user program at the startup.
I did not add any user except for root.
After searching for solution of how to enable automatic login i have found instructions that said i need to use agetty. In order:
apk add util-linuxto add agetty.cd /etc/init.d && ln -s agetty agetty.tty1to add agetty service for the terminal.cd /etc/conf.d && cp agetty agetty.tty1to add configuration.nano agetty.tty1or use other editor to add "--autologin $USER --noclear" to agetty optionsrc-update add agetty.tty1to ensure launch at start.
One thing that bothered me was the fact instruction told about turning off previous agetty service before adding new, changed one - and there was no agetty service enabled.
However, things went wrong: during machine start i could see output of the automatic login before several services (chrony and some other) were started, and then i got another login prompt that did not work anymore. it seemed as there were bno two logins/terminals and system became unworkable.
What was my error and how can i fix this?