"tvheadend --firstrun --abort" exits without saving the configuration
OpenWrt uses this command for the first run after tvheadend package is installed:
tvheadend -c /etc/tvheadend -B -C -A
This command should create initial admin account without password and save it to /etc/tvheadend. It does not. Tvheadend aborts execution before the files are saved to disk.
It was working in tvheadend v4.0.10. After I updated the package to v4.2.8 it's not working anymore. Also not working in current master branch.
- Install tvheadend
- Remove /etc/tvheadend
- Run the command
- tvheadend shows messages that a new account is created, but /etc/tvheadend remains empty after tvheadend exits.
I am attaching 2 strace files, with and without --abort, showing that --abort (-A) causes tvheadend to exit before configuration files are saved.