mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-17 21:11:34 +03:00
bdee7cf0e0
Instead, rely on targets. Additionally removes the "Boot" special dependency which only made sense when it was expected that having no dependency was an error.
16 lines
529 B
Ruby
16 lines
529 B
Ruby
# 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)
|
|
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
|