1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-24 08:23:33 +03:00
mobile-nixos/boot/init/tasks/splash.rb
Samuel Dionne-Riel b38caeec1a boot/init: Fixup for $PROGRAM_NAME now pointing to the applet
We know that the loader is at "/loader" in our initrd. Use that
knowledge.
2020-05-31 18:54:07 -04:00

26 lines
452 B
Ruby

# Adds a minimal set of files required for logging-in.
class Tasks::Splash < Task
attr_reader :image
def initialize(image)
add_dependency(:Target, :Graphics)
@image = image
end
def run()
begin
System.run(LOADER, "/applets/boot-splash.mrb", image)
# Don't fail the boot if the splash fails
rescue System::CommandError
end
end
def name()
"#{super}(#{image})"
end
def ux_priority()
-100
end
end