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

boot/init: Tear down udevd

This fixes amdgpu suspend/resume on Steam Deck.
This commit is contained in:
Samuel Dionne-Riel 2023-03-02 14:04:55 -05:00
parent c252e7bd91
commit 50bd07f404
2 changed files with 5 additions and 2 deletions

View File

@ -332,6 +332,8 @@ class Tasks::SwitchRoot < SingletonTask
raise "Failed to kexec into #{selected_generation}"
end
Tasks::UDev.instance.teardown()
[
"/proc",
"/sys",

View File

@ -37,6 +37,7 @@ class Tasks::UDev < SingletonTask
false
end
# TODO: teardown
# udevadm control --exit
def teardown()
udevadm("control", "--exit")
end
end