sysvinit: Fix bootlogd startup
PATCH 1/1 sysvinit: Fix bootlogd startup
The bootlogd program currently does not start correctly. This is because it is being started at S07, but the program requires access to /dev/pts which is normally started at S38. This yields an error like:
bootlogd: cannot allocate pseudo tty: No such file or directory
Starting bootlogd at S39 fixes this.
n.b. Moving the creation of /dev/pts to S06 in the initscripts package is an alternative solution.
--- meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb +1 -1
@@ -91,7 +91,7 @@ do_install () { install -m 0755 ${WORKDIR}/bootlogd.init ${D}${sysconfdir}/init.d/bootlogd ln -sf bootlogd ${D}${sysconfdir}/init.d/stop-bootlogd - update-rc.d -r ${D} bootlogd start 07 S . + update-rc.d -r ${D} bootlogd start 39 S . update-rc.d -r ${D} stop-bootlogd start 99 2 3 4 5 . install -d ${D}${sysconfdir}/default/volatiles
Signature · 1 line
1.9.1
Quoted 6 lines · Gary Thomas
The bootlogd program currently does not start correctly. This is because it is being started at S07, but the program requires access to
/dev/ptswhich is normally started at S38. This yields an error like:
bootlogd: cannot allocate pseudo tty: No such file or directory
Quoted 6 lines
Starting bootlogd at S39 fixes this.
n.b. Moving the creation of
/dev/ptsto S06 in the initscripts package is an alternative solution.Signed-off-by Gary Thomas <[email protected]>
Never mind. This issue only occurs when booting a kernel which does not implement legacy PTY devices. If your kernel supports legacy PTY devices, the bootlogd works as currently configured (S07)
Quoted 18 lines
--- meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb +1
-1@@ -91,7 +91,7 @@ do_install () { install -m 0755 ${WORKDIR}/bootlogd.init ${D}${sysconfdir}/init.d/bootlogd ln -sf bootlogd ${D}${sysconfdir}/init.d/stop-bootlogd - update-rc.d -r ${D} bootlogd start 07 S . + update-rc.d -r ${D} bootlogd start 39 S . update-rc.d -r ${D} stop-bootlogd start 99 2 3 4 5 . install -d ${D}${sysconfdir}/default/volatiles
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------