mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-11 09:04:01 +03:00
boot/init: Make Graphics target depend on Modules
This ensures any modules needed for the splash are loaded beforehand. Also notify the kernel about the modprobe binary.
This commit is contained in:
parent
a87672b761
commit
a97c094f65
@ -3,10 +3,14 @@ class Tasks::Modules < Task
|
||||
def initialize(*modules)
|
||||
add_dependency(:Files, MODULES_PATH)
|
||||
add_dependency(:Target, :Environment)
|
||||
add_dependency(:Mount, "/proc")
|
||||
# May be required for input or display modules
|
||||
Targets[:Graphics].add_dependency(:Task, self)
|
||||
@modules = modules
|
||||
end
|
||||
|
||||
def run()
|
||||
System.write("/proc/sys/kernel/modprobe", System.which("modprobe"))
|
||||
@modules.each do |mod|
|
||||
begin
|
||||
System.run("modprobe", mod)
|
||||
|
Loading…
Reference in New Issue
Block a user