
Untitled
By: a guest on
Feb 21st, 2012 | syntax:
Ruby | size: 0.30 KB | hits: 25 | expires: Never
def _mount_partitions()
@setup.partition_table.each do |dev,info|
if info[:format_type] == "swap"
`swapon #{dev}`
else
if %w(/ /home).index(info[:mount_point])
path = File.join(@target,info[:mount_point])
`mount -t #{info[:format_type]} #{dev} #{path}`
end
end
end
end