Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Udev rules for identical hard drives
Date: Thu, 02 Aug 2012 18:31:46
Message-Id: 20120802202917.3c6794b0@weird.wonkology.org
In Reply to: Re: [gentoo-user] Udev rules for identical hard drives by Dale
1 Dale writes:
2
3 > Alex Schuster wrote:
4 > > Mark Knecht writes:
5 > >
6 > >> Check out the very nice 'lsdrv' script by Phil Turmel. Run it, save a
7 > >> copy of the output for bad times.
8 > >>
9 > >> https://github.com/pturmel/lsdrv
10 > > That doesn't work here, and I do not understand why. In line 305 it
11 > > tries and fails to create /dev/block, which is already existing.
12 > >
13 > > if not os.path.exists('/dev/block'):
14 > > os.mkdir('/dev/block', 0755)
15 > >
16 > > Uh, is this a python bug? It works fine with python 2.7, but not with
17 > > 3.2. But os.path.exists() is quite a basic function, if that wouldn't
18 > > work, I'd expect all things to break, including emerge.
19 [...]
20 > I'm amd64 and it works here.
21 >
22 > root@fireball / # equery l python
23 > * Searching for python ...
24 > [IP-] [ ] dev-lang/python-2.7.3-r2:2.7
25 > [IP-] [ ] dev-lang/python-3.2.3:3.2
26
27 Um, but did you use eselect to make 3.2 the current version?
28
29 Wonko

Replies

Subject Author
Re: [gentoo-user] Udev rules for identical hard drives Dale <rdalek1967@×××××.com>