mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-16 03:32:02 +03:00
bb7e9a3b7b
Can be used as a single point of failure (hah!)
13 lines
278 B
Ruby
13 lines
278 B
Ruby
class Tasks::Crash < SingletonTask
|
|
def initialize()
|
|
# Runs before SwitchRoot
|
|
Targets[:SwitchRoot].add_dependency(:Task, self)
|
|
# And after /mnt is available
|
|
add_dependency(:Mount, "/mnt")
|
|
end
|
|
|
|
def run()
|
|
raise "This is an exception from init!"
|
|
end
|
|
end
|