Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/boxgrinder-build/plugins/platform/ec2/ec2-plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def execute
@log.debug "'/etc/resolv.conf' uploaded."

if (@appliance_config.os.name == 'rhel' or @appliance_config.os.name == 'centos') and @appliance_config.os.version == '5'
# Remove normal kernel
guestfs.sh("yum -y remove kernel")
# because we need to install kernel-xen package
# Install kernel-xen package
guestfs_helper.sh("yum -y install kernel-xen", :arch => @appliance_config.hardware.arch)
# Then remove normal kernel. We don't need it anymore.
guestfs.sh("yum -y remove kernel")
# and add require modules
@linux_helper.recreate_kernel_image(guestfs, ['xenblk', 'xennet'])
end
Expand Down