lib/boxgrinder-build/images/raw-image.rb in boxgrinder-build-0.0.5 vs lib/boxgrinder-build/images/raw-image.rb in boxgrinder-build-0.0.6
- old
+ new
@@ -127,10 +127,10 @@
['baseurl', 'mirrorlist'].each do |type|
repo_file << ("#{type}=#{repo[type]}\n") unless repo[type].nil?
end
- guestfs.sh("echo -e '#{repo_file}' > /etc/yum.repos.d/#{repo['name']}.repo")
+ guestfs.write_file( "/etc/yum.repos.d/#{repo['name']}.repo", repo_file, 0 )
end
@log.debug "Repositories installed."
end
end
end