1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-09-11 03:55:23 +03:00

boot/init: Add support for bypassWorkqueues

This commit is contained in:
Samuel Dionne-Riel 2023-03-03 11:38:42 -05:00
parent 5945a7e957
commit bf43312242

View File

@ -54,6 +54,13 @@ class Tasks::Luks < Task
"--allow-discards",
]
end
if @info["bypassWorkqueues"] then
@cryptsetup_args.concat [
"--perf-no_read_workqueue",
"--perf-no_write_workqueue",
]
end
add_dependency(:Task, Tasks::UDev.instance)
add_dependency(:Devices, source)
add_dependency(:Mount, "/run")