depot/third_party/nixpkgs/pkgs/tools/misc/rpi-imager/lsblkCheckFix.patch
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

16 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(