Bug 4746 - invoke "/etc/init.d/systemd-udevd restart" failed
Summary: invoke "/etc/init.d/systemd-udevd restart" failed
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 1.5 M2
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-06-18 12:02 UTC by Hongxu Jia
Modified: 2013-06-19 02:20 UTC (History)
11 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 Hongxu Jia 2013-06-18 12:02:22 UTC
*env
Build Configuration:
BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "emenlow-noemgd"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4+snapshot-20130618"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "hongxu-0618-coldplug:1dd643b142c69ac9035e29bff11d02201638dc65"
meta-intel        
meta-emenlow      = "master:c8856e41a418da8080a515c6fbcf4c46765301e3"

vim conf/local.conf
252 DISTRO_FEATURES_append = " systemd"
253 VIRTUAL-RUNTIME_init_manager = "systemd"
254 MACHINE ?= "emenlow-noemgd"

vim conf/bblayers.conf
  8 BBLAYERS ?= " \
  9   /home/jiahongxu/yocto/poky/meta \
 10   /home/jiahongxu/yocto/poky/meta-yocto \
 11   /home/jiahongxu/yocto/poky/meta-yocto-bsp \
 12   /home/jiahongxu/yocto/poky/meta-intel \
 13   /home/jiahongxu/yocto/poky/meta-intel/meta-emenlow \

Machine has internal SSD with sda1/sda2/sda3 partitions.
There are also 3 usb sticks,
A usb stick with partition sdb which is used to boot.

*problem
connect target by ssh and invoke "/lib/systemd/systemd-udevd restart"
root@emenlow-noemgd:~# /etc/init.d/systemd-udevd restart
Stopping udevd
Starting udev
corrupt queue file

root@emenlow-noemgd:~# /etc/init.d/systemd-udevd status
udevd is stopped

*analysis
The process name is systemd-udevd rather than udev which is
used in script "/lib/systemd/systemd-udevd"

root@emenlow-noemgd:~# ps
3805 root      8728 S    /lib/systemd/systemd-udevd

vi /etc/init.d/systemd-udevd
  stop)                                                                                                                                       
    echo "Stopping udevd"                                                                                                                     
    start-stop-daemon --stop --name udevd --quiet                                                                                     
    ;;                                                                                                                                        
  restart)                                                                                                                                    
    $0 stop                                                                                                                                   
    sleep 1                                                                                                                                   
    $0 start                                                                                                                                  
    ;;                                                                                                                                        
  status)                                                                                                                                     
    status udevd                                                                                                                              
    ;;