0

I'm running a NVIDIA L4T (linux for tegra) based Ubuntu 14.04 image on a Tegra K1 board. I added a line to the otherwise empty (save for the bash -e comment at the beginning) /etc/rc.local file. That line is just an echo.

I am looking on the debug serial console of the Tegra board.

When I boot the system, the text is output as expected. Then, roughly 3 minutes later, some more things are reported by the OS, and then evidently, rc.local is run again, because I see my text a second time.

Why is that / how can it be fixed?

Edit: forgot the output listing. Note: The "Starting early crypto disks..." is what takes a couple minutes after I got the $ prompt on the same line, to appear. Everything after that line basically comes in one blink of an eye with it.

Edit #2: Correction to the above: After I get the @tegra-ubuntu:~$ prompt, and after some minutes the "Starting early crypto..." and all the outher output comes, it gets "in one go" only to "saned disabled; ...". After that, it takes another few minutes to the occurrence of the second "hellooooo!!!!", i.e. the second execution of the rc.local.

 * Starting DNS forwarder and DHCP server dnsmasq                        [ OK ]
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
 * speech-dispatcher disabled; edit /etc/default/speech-dispatcher
 * Starting NTP server ntpd                                              [ OK ]
saned disabled; edit /etc/default/saned
hellooooo!!!! (from /etc/rc.local)

Ubuntu 14.04.6 LTS tegra-ubuntu ttyS0

tegra-ubuntu login: ubuntu (automatic login)

Last login: Sat Jan  1 00:03:59 UTC 2000 from 172.16.240.31 on pts/2
Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.10.40-2.8.6+g2c7a3c3af726 armv7l)

 * Documentation:  https://help.ubuntu.com/

New release '16.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

ubuntu@tegra-ubuntu:~$  * Starting early crypto disks...                 [ OK ]
sh: echo: I/O error
 * Setting up X socket directories...                                    [ OK ]
 * Starting DNS forwarder and DHCP server dnsmasq                                * (already running)
 * speech-dispatcher disabled; edit /etc/default/speech-dispatcher
 * Starting NTP server ntpd                                              [ OK ]
saned disabled; edit /etc/default/saned
hellooooo!!!! (from /etc/rc.local)

put on hold as off-topic by DK Bose, karel, Kulfy, Eliah Kagan, wjandrea Oct 14 at 16:35

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.