3
0
Fork 0
forked from mirrors/nixpkgs

python-blivet: Fix udev path for Debian Wheezy.

Only affects "useNixUdev = false" and we now include the udev paths for
the latest Debian Wheezy release, so we can properly deploy Hetzner
machines with NixOps again as they've updated their rescue system to
Wheezy.

This fixes NixOS/nixops#137, thanks to @lovek323 for reporting.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-09-20 13:08:11 +02:00
parent db17b115ef
commit ad4156e497
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -36,7 +36,9 @@ in buildPythonPackage rec {
c libudev = "${udev}/lib/libudev.so.1" c libudev = "${udev}/lib/libudev.so.1"
}' blivet/pyudev.py }' blivet/pyudev.py
'' else '' '' else ''
sed -i -e '/^somajor *=/s/=.*/= ${toString udevSoMajor}/p' \ sed -i \
-e '/^somajor *=/s/=.*/= ${toString udevSoMajor}/p' \
-e 's|common =.*|& + ["/lib/x86_64-linux-gnu", "/lib/i686-linux-gnu"]|' \
blivet/pyudev.py blivet/pyudev.py
''); '');