public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] initscripts: Start devpts at 06 instead of 38
@ 2016-08-31 13:22 Mike Looijmans
  2016-08-31 13:47 ` Mike Looijmans
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Looijmans @ 2016-08-31 13:22 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mike Looijmans

For example bootlogd needs devpts to be running, but bootlogd starts
at 07. Starting bootlogd early makes perfect sense, so the best option
here is to move devpts up to 06 to prevent this error message at boot:
cannot allocate pseudo tty: No such file or directory

Systems that have CONFIG_LEGACY_PTYS in the kernel will not see this
message. Since it is called "LEGACY" for a reason, fixing this in
userspace appears to be the better option here.

The devpts script does not need anything except a mounted "/dev" which
has been arranged in "S02sysfs.sh" already.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
 meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 148491f..8f110b0 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -138,7 +138,7 @@ do_install () {
 	update-rc.d -r ${D} sysfs.sh start 02 S .
 	update-rc.d -r ${D} populate-volatile.sh start 37 S .
 	update-rc.d -r ${D} read-only-rootfs-hook.sh start 29 S .
-	update-rc.d -r ${D} devpts.sh start 38 S .
+	update-rc.d -r ${D} devpts.sh start 06 S .
 	if [ "${TARGET_ARCH}" = "arm" ]; then
 	        update-rc.d -r ${D} alignment.sh start 06 S .
 	fi
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] initscripts: Start devpts at 06 instead of 38
  2016-08-31 13:22 [PATCH] initscripts: Start devpts at 06 instead of 38 Mike Looijmans
@ 2016-08-31 13:47 ` Mike Looijmans
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Looijmans @ 2016-08-31 13:47 UTC (permalink / raw)
  To: openembedded-core

On 31-08-16 15:22, Mike Looijmans wrote:
> For example bootlogd needs devpts to be running, but bootlogd starts
> at 07. Starting bootlogd early makes perfect sense, so the best option
> here is to move devpts up to 06 to prevent this error message at boot:
> cannot allocate pseudo tty: No such file or directory
>
> Systems that have CONFIG_LEGACY_PTYS in the kernel will not see this
> message. Since it is called "LEGACY" for a reason, fixing this in
> userspace appears to be the better option here.
>
> The devpts script does not need anything except a mounted "/dev" which
> has been arranged in "S02sysfs.sh" already.

A second thought here: I was looking into the other scripts and I think it 
would make sense to just integrate the "devpts" script into "sysfs". The sysfs 
description already claims to "Mount initial set of virtual filesystems the 
kernel provides and that are required by everything." and devpts fits that 
description quite well.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-31 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-31 13:22 [PATCH] initscripts: Start devpts at 06 instead of 38 Mike Looijmans
2016-08-31 13:47 ` Mike Looijmans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox