mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
python-blivet: Fix path and call to wipefs.
First of all, the path to wipefs didn't work at all, and though it is documented, the "-f" flag only works when used as a long option ("--force"). This is probably fixed upstream in util-linux, but using the long-option will stay compatible. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
ffddc1be9f
commit
7c24918a5f
@ -467,6 +467,10 @@ pythonPackages = python.modules // rec {
|
||||
}' blivet/pyudev.py
|
||||
sed -i -e 's|"multipath"|"${pkgs.multipath_tools}/sbin/multipath"|' \
|
||||
blivet/devicelibs/mpath.py blivet/devices.py
|
||||
sed -i -e '/"wipefs"/ {
|
||||
s|wipefs|${pkgs.utillinux}/sbin/wipefs|
|
||||
s/-f/--force/
|
||||
}' blivet/formats/__init__.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = let
|
||||
|
Loading…
Reference in New Issue
Block a user