* [PATCH 0/2] sysvinit: adjust the boot sequence and fix missing of boot log @ 2013-11-02 5:21 Qi.Chen 2013-11-02 5:21 ` [PATCH 1/2] bootlogd: create log file if not present Qi.Chen 2013-11-02 5:22 ` [PATCH 2/2] sysvinit: adjust boot sequence and remove hack from udev Qi.Chen 0 siblings, 2 replies; 4+ messages in thread From: Qi.Chen @ 2013-11-02 5:21 UTC (permalink / raw) To: openembedded-core From: Chen Qi <Qi.Chen@windriver.com> The following changes since commit f3541226b8b1187e79dec0f6f9f3c58cedf9ac9b: bitbake: hob: do not display the "Package list may be incomplete!" dialog (2013-11-01 17:59:31 +0000) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/sysvinit-bootlogd http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/sysvinit-bootlogd Chen Qi (2): bootlogd: create log file if not present sysvinit: adjust boot sequence and remove hack from udev meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +- meta/recipes-core/sysvinit/sysvinit/bootlogd.init | 4 ++-- meta/recipes-core/udev/udev.inc | 2 +- meta/recipes-core/udev/udev/init | 4 +++- .../modutils-initscripts/modutils-initscripts.bb | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) -- 1.7.9.5 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] bootlogd: create log file if not present 2013-11-02 5:21 [PATCH 0/2] sysvinit: adjust the boot sequence and fix missing of boot log Qi.Chen @ 2013-11-02 5:21 ` Qi.Chen 2013-11-02 5:22 ` [PATCH 2/2] sysvinit: adjust boot sequence and remove hack from udev Qi.Chen 1 sibling, 0 replies; 4+ messages in thread From: Qi.Chen @ 2013-11-02 5:21 UTC (permalink / raw) To: openembedded-core From: Chen Qi <qi.chen@windriver.com> Previously, our system had no boot log even if the bootlogd daemon was started correctly. The root cause is that the log file doesn't exist when starting the bootlogd. Add '-c' option to bootlogd so that it will create the boot log if it doesn't exist. [YOCTO #5273] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> --- meta/recipes-core/sysvinit/sysvinit/bootlogd.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init index 7b87827..b181357 100755 --- a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init +++ b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init @@ -47,9 +47,9 @@ case "$ACTION" in then umask 027 start-stop-daemon --start --quiet \ - --exec $DAEMON -- -r + --exec $DAEMON -- -r -c else - $DAEMON -r + $DAEMON -r -c fi echo "$NAME." ;; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] sysvinit: adjust boot sequence and remove hack from udev 2013-11-02 5:21 [PATCH 0/2] sysvinit: adjust the boot sequence and fix missing of boot log Qi.Chen 2013-11-02 5:21 ` [PATCH 1/2] bootlogd: create log file if not present Qi.Chen @ 2013-11-02 5:22 ` Qi.Chen 2013-11-08 20:33 ` Mark Hatle 1 sibling, 1 reply; 4+ messages in thread From: Qi.Chen @ 2013-11-02 5:22 UTC (permalink / raw) To: openembedded-core From: Chen Qi <qi.chen@windriver.com> Adjust the boot sequence in sysvinit based systems. The mountall.sh (mounting the local file system) needs to be started before udev and bootlogd. This patch makes mountall.sh start before udev and removes the hack of mounting tmpfs in the udev init script. This patch also adds some comments to the udev init script to make it clear why we create the '/var/volatile/tmp' directory. [YOCTO #5273] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> --- meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +- meta/recipes-core/udev/udev.inc | 2 +- meta/recipes-core/udev/udev/init | 4 +++- .../modutils-initscripts/modutils-initscripts.bb | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb index c2998c3..2d58266 100644 --- a/meta/recipes-core/initscripts/initscripts_1.0.bb +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb @@ -115,7 +115,7 @@ do_install () { update-rc.d -r ${D} save-rtc.sh start 25 0 6 . update-rc.d -r ${D} banner.sh start 02 S . update-rc.d -r ${D} checkroot.sh start 06 S . - update-rc.d -r ${D} mountall.sh start 35 S . + update-rc.d -r ${D} mountall.sh start 03 S . update-rc.d -r ${D} hostname.sh start 39 S . update-rc.d -r ${D} mountnfs.sh start 45 S . update-rc.d -r ${D} bootmisc.sh start 55 S . diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc index 2ff8f00..02cab3b 100644 --- a/meta/recipes-core/udev/udev.inc +++ b/meta/recipes-core/udev/udev.inc @@ -50,7 +50,7 @@ PACKAGES =+ "libgudev libgudev-dev libgudev-dbg" INITSCRIPT_PACKAGES = "udev udev-cache" INITSCRIPT_NAME_udev = "udev" -INITSCRIPT_PARAMS_udev = "start 03 S ." +INITSCRIPT_PARAMS_udev = "start 04 S ." INITSCRIPT_NAME_udev-cache = "udev-cache" INITSCRIPT_PARAMS_udev-cache = "start 36 S ." diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index e048a17..410a650 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init @@ -54,7 +54,9 @@ case "$1" in } [ -e /dev/pts ] || mkdir -m 0755 /dev/pts [ -e /dev/shm ] || mkdir -m 1777 /dev/shm - mount -a -t tmpfs 2>/dev/null + # the automount rule for udev needs /tmp directory available, as /tmp is a symlink + # to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure + # /var/volatile/tmp directory to be available. mkdir -p /var/volatile/tmp # Cache handling. diff --git a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb index 89d38cf..594e554 100644 --- a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb +++ b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb @@ -7,7 +7,7 @@ SRC_URI = "file://modutils.sh \ PR = "r6" INITSCRIPT_NAME = "modutils.sh" -INITSCRIPT_PARAMS = "start 4 S ." +INITSCRIPT_PARAMS = "start 05 S ." inherit update-rc.d -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] sysvinit: adjust boot sequence and remove hack from udev 2013-11-02 5:22 ` [PATCH 2/2] sysvinit: adjust boot sequence and remove hack from udev Qi.Chen @ 2013-11-08 20:33 ` Mark Hatle 0 siblings, 0 replies; 4+ messages in thread From: Mark Hatle @ 2013-11-08 20:33 UTC (permalink / raw) To: openembedded-core On 11/2/13, 12:22 AM, Qi.Chen@windriver.com wrote: > From: Chen Qi <qi.chen@windriver.com> > > Adjust the boot sequence in sysvinit based systems. > > The mountall.sh (mounting the local file system) needs to be started > before udev and bootlogd. > > This patch makes mountall.sh start before udev and removes the hack of > mounting tmpfs in the udev init script. > > This patch also adds some comments to the udev init script to make it > clear why we create the '/var/volatile/tmp' directory. Someone else might be able to comment on this. Can you move mountall before udev? I thought udev may be required in order to setup the hardware, or at least the device nodes to permit the mounting. Mounting before bootlogd I can see. Since w/o the mounts there may be nowhere to write to. --Mark > [YOCTO #5273] > > Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > --- > meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +- > meta/recipes-core/udev/udev.inc | 2 +- > meta/recipes-core/udev/udev/init | 4 +++- > .../modutils-initscripts/modutils-initscripts.bb | 2 +- > 4 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb > index c2998c3..2d58266 100644 > --- a/meta/recipes-core/initscripts/initscripts_1.0.bb > +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb > @@ -115,7 +115,7 @@ do_install () { > update-rc.d -r ${D} save-rtc.sh start 25 0 6 . > update-rc.d -r ${D} banner.sh start 02 S . > update-rc.d -r ${D} checkroot.sh start 06 S . > - update-rc.d -r ${D} mountall.sh start 35 S . > + update-rc.d -r ${D} mountall.sh start 03 S . > update-rc.d -r ${D} hostname.sh start 39 S . > update-rc.d -r ${D} mountnfs.sh start 45 S . > update-rc.d -r ${D} bootmisc.sh start 55 S . > diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc > index 2ff8f00..02cab3b 100644 > --- a/meta/recipes-core/udev/udev.inc > +++ b/meta/recipes-core/udev/udev.inc > @@ -50,7 +50,7 @@ PACKAGES =+ "libgudev libgudev-dev libgudev-dbg" > > INITSCRIPT_PACKAGES = "udev udev-cache" > INITSCRIPT_NAME_udev = "udev" > -INITSCRIPT_PARAMS_udev = "start 03 S ." > +INITSCRIPT_PARAMS_udev = "start 04 S ." > INITSCRIPT_NAME_udev-cache = "udev-cache" > INITSCRIPT_PARAMS_udev-cache = "start 36 S ." > > diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init > index e048a17..410a650 100644 > --- a/meta/recipes-core/udev/udev/init > +++ b/meta/recipes-core/udev/udev/init > @@ -54,7 +54,9 @@ case "$1" in > } > [ -e /dev/pts ] || mkdir -m 0755 /dev/pts > [ -e /dev/shm ] || mkdir -m 1777 /dev/shm > - mount -a -t tmpfs 2>/dev/null > + # the automount rule for udev needs /tmp directory available, as /tmp is a symlink > + # to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure > + # /var/volatile/tmp directory to be available. > mkdir -p /var/volatile/tmp > > # Cache handling. > diff --git a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb > index 89d38cf..594e554 100644 > --- a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb > +++ b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb > @@ -7,7 +7,7 @@ SRC_URI = "file://modutils.sh \ > PR = "r6" > > INITSCRIPT_NAME = "modutils.sh" > -INITSCRIPT_PARAMS = "start 4 S ." > +INITSCRIPT_PARAMS = "start 05 S ." > > inherit update-rc.d > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-08 20:33 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-11-02 5:21 [PATCH 0/2] sysvinit: adjust the boot sequence and fix missing of boot log Qi.Chen 2013-11-02 5:21 ` [PATCH 1/2] bootlogd: create log file if not present Qi.Chen 2013-11-02 5:22 ` [PATCH 2/2] sysvinit: adjust boot sequence and remove hack from udev Qi.Chen 2013-11-08 20:33 ` Mark Hatle
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox