Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 21st, 2012  |  syntax: Ruby  |  size: 0.30 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def _mount_partitions()
  2.         @setup.partition_table.each do |dev,info|
  3.                 if info[:format_type] == "swap"
  4.                         `swapon #{dev}`
  5.                 else
  6.                         if %w(/ /home).index(info[:mount_point])
  7.                                 path = File.join(@target,info[:mount_point])
  8.                                 `mount -t #{info[:format_type]} #{dev} #{path}`
  9.                         end
  10.                 end
  11.         end
  12. end