1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 03:32:02 +03:00
mobile-nixos/examples/testing/crash-before-switch-root/crash.rb
Samuel Dionne-Riel bb7e9a3b7b examples: Add testing/crash-before-switch-root
Can be used as a single point of failure (hah!)
2020-11-08 18:37:13 -05:00

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