Advertisement
Guest User

Untitled

a guest
Feb 21st, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.30 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement