diskimage-builder/elements/baremetal
Om Kumar bccffc8bfd Refactor code to select boot kernel
The script to find best kernel from image (used by vm
and baremetal element) is duplicated and is not in sync
with each other. Moving the code to img-functions as a
function will reduce duplicated code and make it reusable
in future.

Since img-functions is not accessible in chroot env,
kernel selection is being moved from finalise.d to
cleanup.d in the vm element.

Change-Id: I8fbccc13a2c61a5191ef9ea5d2a8302a3e43b000
2014-06-13 11:46:39 +05:30
..
cleanup.d Refactor code to select boot kernel 2014-06-13 11:46:39 +05:30
README.md Parameterise PXE kernel and initrd selection 2014-05-21 10:08:23 +01:00

This is the baremetal (IE: real hardware) element.

Does the following:

  • extracts the kernel and initial ramdisk of the built image.

Optional parameters:

  • DIB_BAREMETAL_KERNEL_PATTERN and DIB_BAREMETAL_INITRD_PATTERN may be supplied to specify which kernel files are preferred; this can be of use when using custom kernels that don't fit the standard naming patterns. Both variables must be provided in order for them to have any effect.