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()
|
2019-12-28 04:43:28 +03:00
|
|
|
# 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
|