1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 05:21:47 +03:00
mobile-nixos/examples/testing/crash-before-switch-root/crash.rb

13 lines
278 B
Ruby
Raw Normal View History

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