1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 05:21:47 +03:00
mobile-nixos/boot/init/tasks/environment.rb

16 lines
529 B
Ruby
Raw Normal View History

2019-12-23 06:32:34 +03:00
# Loads a basic environment.
# This is used mainly to make LD_LIBRARY_PATH valid, and additionally points
# PATH to extraUtils.
class Tasks::Environment < SingletonTask
def initialize()
# Make the Environment target depend on this task.
Targets[:Environment].add_dependency(:Task, self)
2019-12-23 06:32:34 +03:00
end
def run()
# Assumes this is *already* symlinked in the initrd.
# This is a sane assumption as running executables will fail without this.
UDev.simple_load_environment("/etc/udev/rules.d/00-env.rules")
end
end