From 7c24918a5f8b618fa12baae71930eb318acb1ee1 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 26 Jun 2013 05:05:39 +0200 Subject: [PATCH] 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 --- pkgs/top-level/python-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 45afdf766ef6..bdb91f1765a0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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