Since .bashrc is a SHELL CONFIGURATION file, it gets run when a BASH
shell is opened. So how are you getting to a bash shell? (It is vaguely
possible you have some script being started by systemd, or a @reboot
crontab entry, which specifies that the bash shell is to be used).
Bash shell/command interpreter won't be available until most of the OS
has booted.
I now have been struggling in reducing my BBB boot time too. I now have reduced it to ~ 20 sec before my QT appllication starts.
I had following requirements:
CAN (CAN0 beacuse can1 is reserved for the touch interrupt pin)
QT Application with a resistive Touch screen (Gen4-4dcape-70t)
Network communication for updates.
USB for reading USB-Sticks
custom Splash screen during boot
Boot as fast as possible
First I used the IoT image. But there were too many services and packages that I didn’t need, so I switched to the console image which is merely over 1 GB size. There were some things I had to install via apt, but its way easier to add things than figure out what is unnecessary.
Next I disabled the generic-startup.service, because I didn’t need the USB-network communication. I also removed the initrd-* file in /boot, because it caused more than 10 seconds delay in during bootup.