~wesley-wiedenmeier/curtin/install-kernel

Viewing all changes in revision 345.

  • Committer: Wesley Wiedenmeier
  • Date: 2016-01-28 03:09:37 UTC
  • Revision ID: wesley.wiedenmeier@gmail.com-20160128030937-f53su7w5q5rcf36r
Curtin sometimes cannot detect the correct kernel package to install based on
build in kernel mappings. If this happens, instead of no longer attempting
kernel installation, try to determine the correct kernel to install based on
the kernel version referenced in the linux-image-{flavor} meta package.

This allows curtin to do the right thing when installing using a ephemeral
image that does not contain a kernel in the event that no kernel is specified
in curtin's configuration. Previously curtin would attempt to determine the
correct kernel to use based on the os.uname() of the system running during the
installation, but this fails when the host system is using a kernel version not
specified in curtin's build in kernel mappings, such as when installing a
xenial ephemeral using wily. Curtin will still attempt to use the built in
mappings, and only fall back to this detection if that fails.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: