Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Udev rules for identical hard drives
Date: Fri, 03 Aug 2012 06:42:11
Message-Id: 501B7248.9000403@gmail.com
In Reply to: Re: [gentoo-user] Udev rules for identical hard drives by Alex Schuster
1 Alex Schuster wrote:
2 > Dale writes:
3 >
4 >> Alex Schuster wrote:
5 >>> Mark Knecht writes:
6 >>>
7 >>>> Check out the very nice 'lsdrv' script by Phil Turmel. Run it, save a
8 >>>> copy of the output for bad times.
9 >>>>
10 >>>> https://github.com/pturmel/lsdrv
11 >>> That doesn't work here, and I do not understand why. In line 305 it
12 >>> tries and fails to create /dev/block, which is already existing.
13 >>>
14 >>> if not os.path.exists('/dev/block'):
15 >>> os.mkdir('/dev/block', 0755)
16 >>>
17 >>> Uh, is this a python bug? It works fine with python 2.7, but not with
18 >>> 3.2. But os.path.exists() is quite a basic function, if that wouldn't
19 >>> work, I'd expect all things to break, including emerge.
20 > [...]
21 >> I'm amd64 and it works here.
22 >>
23 >> root@fireball / # equery l python
24 >> * Searching for python ...
25 >> [IP-] [ ] dev-lang/python-2.7.3-r2:2.7
26 >> [IP-] [ ] dev-lang/python-3.2.3:3.2
27 > Um, but did you use eselect to make 3.2 the current version?
28 >
29 > Wonko
30 >
31 >
32
33
34 Nope. I didn't notice he was trying to use 3.2 until after I hit send.
35 Bad thing about emails, you can't delete them after they are sent. :/
36
37 I thought we were supposed to have 2.7 selected for the default and I
38 guess I just assumed that was what he was doing. I guess I am not the
39 only one getting ahead of myself. lol
40
41 Dale
42
43 :-) :-)
44
45 --
46 I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Replies

Subject Author
Re: [gentoo-user] Udev rules for identical hard drives Paul Hartman <paul.hartman+gentoo@×××××.com>