1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-06 03:27:17 +03:00

boot/init: Pass down luks device arguments

This commit is contained in:
Samuel Dionne-Riel 2023-03-03 11:36:04 -05:00
parent d7abb16068
commit 2d3a3d67dc
2 changed files with 23 additions and 2 deletions

View File

@ -77,7 +77,7 @@ module Mounting
auto_depend_mount_points(mount_points)
(Configuration["luksDevices"] or []).each do |mapper, info|
Tasks::Luks.new(info["device"], mapper)
Tasks::Luks.new(info["device"], mapper, info)
end
end

View File

@ -23,10 +23,31 @@ class Tasks::Luks < Task
@registry
end
def initialize(source, mapper)
def initialize(source, mapper, info)
@source = source
@mapper = mapper
# Current known and used keys
# "device", # First param, source
# "allowDiscards",
# "bypassWorkqueues",
#
# Current known and unused (by design) keys
# "fallbackToPassword", # Nothing else than password
#
# Currently known unsupported keys (contributions welcome)
# "crypttabExtraOpts",
# "fido2",
# "header",
# "gpgCard",
# "keyFile",
# "keyFileOffset",
# "keyFileSize",
# "postOpenCommands",
# "preLVM",
# "preOpenCommands",
# "yubikey",
@info = info
add_dependency(:Task, Tasks::UDev.instance)
add_dependency(:Devices, source)
add_dependency(:Mount, "/run")