Skip to contentSkip to conversation

udev ptest leaves symlink loops in target sysroots

DISCUSSION Ed Swarthout 2 participants 2 messages Sep 15, 2014

lore
Share & tools
lore
#0 lore raw

I've been working on qemu crashes for the blacklisted emacs build.
As one of the fixes it would be nice to point qemu directly to the target sysroots directory to find the loader. But this causes qemu to hang because there are symlink loops in the directory tree and it does not know how to ignore loops.

It looks like udev ptest is the culprit:

/f/deb/home/yocto/yocto/build2014/tmp/sysroots/qemuppc/usr/lib/udev/ptest/test/sys/block/loop0/subsystem/loop0/subsystem:
total used in directory 8 available 55515512
drwxr-xr-x 2 ed ed0 4096 Aug 24 10:51 .
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop0 ->
../../devices/virtual/block/loop0
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop1 ->
../../devices/virtual/block/loop1
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop2 ->
../../devices/virtual/block/loop2
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop3 ->
../../devices/virtual/block/loop3

Does it have to leave these there after it completes the test?

Ed

Ed Swarthout
Austin, Tx

#1 lore raw
Quoted 14 lines · Ed Swarthout

It looks like udev ptest is the culprit:

/f/deb/home/yocto/yocto/build2014/tmp/sysroots/qemuppc/usr/lib/udev/ptest/test/sys/block/loop0/subsystem/loop0/subsystem:
total used in directory 8 available 55515512
drwxr-xr-x 2 ed ed0 4096 Aug 24 10:51 .
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop0 ->
../../devices/virtual/block/loop0
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop1 ->
../../devices/virtual/block/loop1
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop2 ->
../../devices/virtual/block/loop2
lrwxrwxrwx 1 ed ed0 33 Aug 24 10:51 loop3 ->
../../devices/virtual/block/loop3

Quoted 1 line

Does it have to leave these there after it completes the test?

No, it should clean up. This would be run-ptest in the systemd recipe, can you submit a tested patch?

Ross