nixpkgs/pkgs/by-name/rp/rpi-imager/lsblkCheckFix.patch

17 lines
564 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 170ce7a..063a137 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -332,11 +332,6 @@ else()
if (NOT LSBLK)
message(FATAL_ERROR "Unable to locate lsblk (used for disk enumeration)")
endif()
-
- execute_process(COMMAND "${LSBLK}" "--json" OUTPUT_QUIET RESULT_VARIABLE ret)
- if (ret EQUAL "1")
- message(FATAL_ERROR "util-linux package too old. lsblk does not support --json (used for disk enumeration)")
- endif()
endif()
configure_file(