linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udevd "got lost" after moving /dev
@ 2006-01-31 12:29 Hai Zaar
  2006-01-31 14:33 ` Kay Sievers
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Hai Zaar @ 2006-01-31 12:29 UTC (permalink / raw)
  To: linux-hotplug

In initramfs I run udevd and populate /dev.
Then I mount new root to $NEWROOT.
Then I do the following:
            cd $NEWROOT
            udevcontrol stop_exec_queue
            mount -n --move /dev ./dev
            mount -n --move / .
            chroot /sbin/init >/dev/console </dev/console

In initramfs I have only storage-related modules. So some of the
events have failed. So in bootscripts, instead of triggering all of
the events again, I just want to:
            udevcontrols start_exec_queue
and then replay failed events. This would complete the coldplugging.

The problem is that after --move'ing and chrooting, udev behaves very
strange. It looks like it do not see the rules or something like that.
For example when I plug USB disk (logs are in the end of the message).
If I restart udevd somewhere in bootscripts, everythings works fine.

Is there something inconsistent in my setup?

udev logs (when I plug USB disk):
--------------------------------
1138709838 udevd[331] : udev_event_run: seq 577 forked, pid [2056],
'add' 'usb', 0 seconds old
1138709838 udevd[331] : udev_done: seq 577, pid [2056] exit with 0, 0
seconds old
1138709838 udevd[331] : udev_event_run: seq 578 forked, pid [2057],
'add' 'usb', 0 seconds old
1138709838 udevd[331] : udev_done: seq 578, pid [2057] exit with 0, 0
seconds old
1138709838 udevd[331] : udev_event_run: seq 579 forked, pid [2058],
'add' 'usb_device', 0 seconds old
1138709838 udevd[331] : udev_done: seq 579, pid [2058] exit with 0, 0
seconds old

udevmonitor output (when I plug USB disk):
-------------------------------------------
UEVENT[1138709934.391279] add@/devices/pci0000:00/0000:00:1d.7/usb1/1-8
ACTION­d
DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8
SUBSYSTEM=usb
SEQNUMX3
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb

UEVENT[1138709934.391438] add@/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0
ACTION­d
DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0
SUBSYSTEM=usb
SEQNUMX4
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/001/007
PRODUCT\x1058/701/240
TYPE=0/0/0
INTERFACE=8/6/80
MODALIAS=usb:v1058p0701d0240dc00dsc00dp00ic08isc06ip50

UEVENT[1138709934.391488] add@/class/usb_device/usbdev1.7
ACTION­d
DEVPATH=/class/usb_device/usbdev1.7
SUBSYSTEM=usb_device
SEQNUMX5
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb
MAJOR\x189
MINOR=6

--
Zaar


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2006-02-02 18:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-31 12:29 udevd "got lost" after moving /dev Hai Zaar
2006-01-31 14:33 ` Kay Sievers
2006-01-31 14:47 ` Hai Zaar
2006-01-31 15:29 ` Scott James Remnant
2006-01-31 16:36 ` Hai Zaar
2006-02-02 13:25 ` Vassilis Virvilis
2006-02-02 13:34 ` Kay Sievers
2006-02-02 18:12 ` Vassilis Virvilis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).