[Pkg-sysvinit-devel] Bug#770342: "dashism" in /etc/init.d/bootlogs ?

Harald Dunkel harald.dunkel at aixigo.de
Thu Nov 20 15:50:32 UTC 2014


Package: initscripts
Version: 2.88dsf-57

If I migrate a LXContainer from Wheezy to Jessie (using
sysvinit-core), then it gets stuck at boot time.

ps -ef --forest shows:

UID         PID   PPID  C STIME TTY          TIME CMD
root        692      0  0 16:26 ?        00:00:00 /bin/bash
root        718    692  0 16:27 ?        00:00:00  \_ ps -ef --forest
root          1      0  0 16:25 ?        00:00:00 init [3]
root        387      1  0 16:25 ?        00:00:00 /sbin/rdnssd -u rdnssd -H /etc/rdnssd/merge-hook
rdnssd      388    387  0 16:25 ?        00:00:00  \_ /sbin/rdnssd -u rdnssd -H /etc/rdnssd/merge-hook
root        602      1  0 16:25 console  00:00:00 /bin/sh /etc/init.d/rc 3
root        607    602  0 16:25 console  00:00:00  \_ /lib/startpar/startpar -p 4 -t 20 -T 3 -M start -P N -R 3
root        608    607  0 16:25 ?        00:00:00      \_ /bin/sh /etc/init.d/bootlogs start
root        688    608  0 16:25 ?        00:00:00          \_ dmesg -s 524288
root        646      1  0 16:25 ?        00:00:00 /usr/sbin/uuidd
root        653      1  0 16:25 ?        00:00:00 /usr/sbin/rsyslogd
unscd       665      1  0 16:25 ?        00:00:00 /usr/sbin/nscd
zabbix      669      1  0 16:25 ?        00:00:00 /usr/sbin/zabbix_agentd
zabbix      670    669  0 16:25 ?        00:00:00  \_ /usr/sbin/zabbix_agentd: collector [idle 1 sec]
zabbix      671    669  0 16:25 ?        00:00:00  \_ /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
zabbix      672    669  0 16:25 ?        00:00:00  \_ /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
zabbix      673    669  0 16:25 ?        00:00:00  \_ /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
zabbix      674    669  0 16:25 ?        00:00:00  \_ /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]

Please note the "dmesg" run by the bootlogs service script.
This is the part that gets stuck. If I kill -9 it, then the
rest of the container boots fine.

/bin/sh is a symlink to bash. If I use dash instead, then the
problem is gone. Is there some kind of "dashism" here?

On the command line the "dmesg -s 524288" works fine for both
dash and bash.


Regards
Harri



More information about the Pkg-sysvinit-devel mailing list