Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator: force load usbhid and hid_sensor_hub #236

Merged
merged 2 commits into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ func generateInitRamfs(conf *generatorConfig) error {
}
}

// force load usbhid and hid_sensor_hub modules when unlocking encrypted LUKS2 volumes with fido2 tokens/devices
for _, file := range conf.extraFiles {
if file == "fido2-assert" {
conf.modulesForceLoad = append(conf.modulesForceLoad, "usbhid", "hid_sensor_hub")

break
}
}

if err := kmod.resolveDependencies(); err != nil {
return err
}
Expand Down