First post here. I'm trying to run some tests against a CentOS 6 machine, but my tests disable networking so I communicate over serial ports.
I created an upstart job that sets up ttyS1 such that it has a bash root shell on it. I used:
/sbin/agetty -n -l /bin/bash ttyS1 115200 vt102
This is a hack, running /bin/bash as a login program. It works, but I would like to pass --rcfile to /bin/bash (otherwise, I get some undesirable output of "bash: /root/.bashrc: Permission denied", even though it is being run as root).
Note: the version of agetty being used has neither --version nor --login-options.