Advertisement
Guest User

Untitled

a guest
Feb 11th, 2015
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.31 KB | None | 0 0
  1. open Mirage
  2.  
  3. let () =
  4.   let main = foreign "Write.Main" (console @-> block @-> job) in
  5.   let img =
  6.     match get_mode () with
  7.     | `Xen -> failwith "Unsupported"
  8.     | `MacOSX -> failwith "Unsupported"
  9.     | `Unix -> block_of_file "disk.img"
  10.   in
  11.   register "Write.Main" [ main $ default_console $ img ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement