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:
parent
d7abb16068
commit
2d3a3d67dc
@ -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
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user