lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb in boxgrinder-build-0.9.0 vs lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb in boxgrinder-build-0.9.1
- old
+ new
@@ -24,12 +24,10 @@
super
register_supported_os('rhel', ['5', '6'])
end
def build_rhel(appliance_definition_file, repos = {})
- adjust_partition_table
-
normalize_packages(@appliance_config.packages)
build_with_appliance_creator(appliance_definition_file, repos) do |guestfs, guestfs_helper|
# required for VMware and KVM
@linux_helper.recreate_kernel_image(guestfs, ['mptspi', 'virtio_pci', 'virtio_blk']) if @appliance_config.os.version == '5' and !@appliance_config.packages.include?('kernel-xen')
@@ -49,14 +47,9 @@
end
end
def add_packages(packages, package_array)
package_array.each { |package| packages << package unless packages.include?(package) }
- end
-
- # https://bugzilla.redhat.com/show_bug.cgi?id=466275
- def adjust_partition_table
- @appliance_config.hardware.partitions['/boot'] = {'root' => '/boot', 'type' => 'ext3', 'size' => 0.1} if @appliance_config.hardware.partitions['/boot'].nil?
end
def execute(appliance_definition_file)
build_rhel(appliance_definition_file)
end