前段时间,我正在把项目中的build/release环境(ubuntu 8.04 LTS)升级到ubuntu 10.04 LTS,遇到一个启动后串口无法启动的问题,但是通过ssh登录进去,通过手工可以启动,经过2天的调试,原来是由于runlevel 是unknown导致的,所以在runlevel 2里面的程序都没有执行,通过google发现了很多人在升级kernel或者系统后出现了这个问题,但是没有解决方法,只有一些work around,lunchpad里面列了一些
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/543506/comments/81
From comment #54
Comment out "console output" in all /etc/init/*.conf files that
have it.
From comment #73
Add "started rsyslog" to the "start on" stanza in /etc/init/rc-sysinit.conf:
start on ( filesystem
and started rsyslog
and net-device-up IFACE=lo
)
From comment #79
Add "init='/sbin/init --verbose'" to the linux boot line in grub.
我这这么做的
I do a little change in /etc/init/rc-sysinit.conf
from
start on filesystem and net-device-up IFACE=lo
to
start on filesystem