Hello, /bin/bashlogin is actually trying to do what `/bin/login -f root` would do, in a bash-specific way and without honoring home and shell values in /etc/passwd. As this script is not intended to be executed by regular users, it should go to /sbin. Cordially Reproducible: Always Steps to Reproduce: 1. cat /bin/bashlogin Actual Results: #!/bin/bash export HOME=/root cat /etc/motd 2>/dev/null cd /root [[ -e .bash_profile ]] && source .bash_profile exec -l /bin/bash -i Expected Results: #!/bin/sh exec login -f root
Is there any reason we use bashlogin instead of using "login -f root" directly?
I modified the livecd-tools to use the -a option of agetty to automatically log in root. The commit is 89e2c85. This is included in livecd-tools-2.0.3.