nixpart: ignore useNixUdev as it's now required by hetzner

This commit is contained in:
Domen Kožar 2019-11-29 12:03:18 +01:00
parent d84fa7c0ce
commit c49ca3e505
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246

View file

@ -3,6 +3,7 @@
{ stdenv, fetchurl, buildPythonApplication, pykickstart, pyparted, pyblock
, libselinux, cryptsetup, multipath_tools, lsof, utillinux
, useNixUdev ? true, systemd ? null
# useNixUdev is here for bw compatibility
}:
assert useNixUdev -> systemd != null;
@ -28,7 +29,6 @@ buildPythonApplication rec {
}' blivet/formats/__init__.py
sed -i -e 's|"lsof"|"${lsof}/bin/lsof"|' blivet/formats/fs.py
sed -i -r -e 's|"(u?mount)"|"${utillinux.bin}/bin/\1"|' blivet/util.py
'' + stdenv.lib.optionalString useNixUdev ''
sed -i -e '/find_library/,/find_library/ {
c libudev = "${systemd.lib}/lib/libudev.so.1"
}' blivet/pyudev.py