Bug 1146 - udevd daemon doesn't exist since second boot
Summary: udevd daemon doesn't exist since second boot
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1 M2
Assignee: Dongxiao Xu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-06-07 01:52 UTC by Dongxiao Xu
Modified: 2011-06-16 23:04 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dongxiao Xu 2011-06-07 01:52:33 UTC
On the first time of system boot, udevd does exist, and it could be shown in "ps ax | grep udevd". However since the second boot, the daemon no longer exists, which will have problems for creating the /dev/ nodes.
Comment 1 Dongxiao Xu 2011-06-07 01:54:53 UTC
Root cause is the udev script, where it has a piece of code:

if [ -e /etc/dev.tar ]; then
        (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp')
        not_first_boot=1
fi


The grep command will return 1 if not found the "time stamp", which cause the udevd start failure.

I will commit a patch to fix it.
Comment 2 Saul Wold 2011-06-08 11:03:51 UTC
Holger Freyther <holger@...> writes:

> > #!/bin/sh -e
> > ...
> > if [ -e /etc/dev.tar ]; then 
> >         (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp')
> >         not_first_boot=1
> > fi
Okay, it is efce51ec11cc2a908833e80b65d2f5db81bb2fec which only works
if the time is broken... I assume one wants to add an || true or such to the
command.

_______________________________________________
poky mailing list
poky@yoctoproject.org
https://lists.yoctoproject.org/listinfo/poky
Comment 4 Yi Zhao 2011-06-16 23:04:43 UTC
Verified it with 20110613 build

Image location:
http://autobuilder.yoctoproject.org/nightly/20110613-1/
Tree/Branch: Poky/master
Commit: e5f3cc34df74c08c8cab3e1cf9207fafaec6cb9a