linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev 140 and missing /dev/root symlink
@ 2009-03-22 21:16 Marco d'Itri
  2009-03-22 23:27 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Marco d'Itri @ 2009-03-22 21:16 UTC (permalink / raw)
  To: linux-hotplug

After switching from 125 to 140 I noticed that in some cases (e.g. a
freshly installed kvm VM works, but my laptop and the one of another
Debian developer does not) the /dev/root symlink is not created anymore.

How can I debug this? I verified that the link is listed in $DEVLINKS
captured at boot time by a logger run after all rules:

DEVLINKS='/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root /dev/root'

but is not present in the udev database:

E: DEVLINKS=/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root

/dev/.udev/rules.d/61-dev-root-link.rules exists and looks correct:

ACTION="add", SUBSYSTEM="block", ENV{MAJOR}="8", ENV{MINOR}="4", SYMLINK+="root"

and indeed /dev/root is created if I trigger a new event:

echo add > /sys/block/sda/sda4/uevent

-- 
ciao,
Marco

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

* Re: udev 140 and missing /dev/root symlink
  2009-03-22 21:16 udev 140 and missing /dev/root symlink Marco d'Itri
@ 2009-03-22 23:27 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2009-03-22 23:27 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Mar 22, 2009 at 22:16, Marco d'Itri <md@linux.it> wrote:
> After switching from 125 to 140 I noticed that in some cases (e.g. a
> freshly installed kvm VM works, but my laptop and the one of another
> Debian developer does not) the /dev/root symlink is not created anymore.
>
> How can I debug this? I verified that the link is listed in $DEVLINKS
> captured at boot time by a logger run after all rules:
>
> DEVLINKS='/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root /dev/root'
>
> but is not present in the udev database:
>
> E: DEVLINKS=/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root
>
> /dev/.udev/rules.d/61-dev-root-link.rules exists and looks correct:
>
> ACTION="add", SUBSYSTEM="block", ENV{MAJOR}="8", ENV{MINOR}="4", SYMLINK+="root"

Add "change" here? Rules that create links or set a name are almost
all wrong, if they do not match on :add" and "change" at the same
time.

Kay

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

end of thread, other threads:[~2009-03-22 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-22 21:16 udev 140 and missing /dev/root symlink Marco d'Itri
2009-03-22 23:27 ` Kay Sievers

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).