mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 05:21:47 +03:00
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
|