On Sun, Mar 22, 2015 at 11:03:34AM +0800, Antonio Borneo wrote:
> Could you please test the patch 0001-* in attachment?
> I don't have possibility to test it in coming weeks.
> 
> The first part of the patch addresses your problem.

yes, if /dev/net/tun is not existing, the patched script will just create it
correctly.

> The second part makes me confused.

agreed...

> It should "never" wait, since few lines before /dev/net/tun is
> explicitly created with mknod, independently by udev.
> For me this loop should be moved before the test that triggers mknod.
> I have prepared patch 0002-*. Not sure you can test it, but comments
> are welcome.

yes, that seems to be obvious, but i can't test that special case. the same
goes with the symlink case. am i fully sure what the snipped want to resolve?

let me try to sum up:

        if dev cannot be read and written do:

        1       modprobe driver (shouldn't there be a condition if already 
loaded?)

        2       if dev is a symlink to wrong location fix symlink

        3       wait for 10 sec for the dev to show up, check by r/w

        4       if dev (still) doesn't exists create it

so i would suggest to move the loop as in your patch 2 but i would suggest to
use the same check of existence of the dev for all 3 cases, maybe just -e to
keep the script simple (-c would be better but then you have to remove the file
to use mknod and it does not work for the symlinkcase, still it would repair
systems where the initial bug happened already).

regards,

-- 
M. Dietrich


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to