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:
parent
c252e7bd91
commit
50bd07f404
@ -332,6 +332,8 @@ class Tasks::SwitchRoot < SingletonTask
|
||||
raise "Failed to kexec into #{selected_generation}"
|
||||
end
|
||||
|
||||
Tasks::UDev.instance.teardown()
|
||||
|
||||
[
|
||||
"/proc",
|
||||
"/sys",
|
||||
|
@ -37,6 +37,7 @@ class Tasks::UDev < SingletonTask
|
||||
false
|
||||
end
|
||||
|
||||
# TODO: teardown
|
||||
# udevadm control --exit
|
||||
def teardown()
|
||||
udevadm("control", "--exit")
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user