define the default kernel statically

Change-Id: I6d39460de826f73e0ae28e0feb6a173d384583a3
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2017-03-16 19:24:00 -05:00
parent 9a48d3728d
commit 1e5c0c5cb9
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F

View File

@ -24,11 +24,7 @@ source functions.rc
DEFAULT_IMAGE="${DEFAULT_IMAGE:-"$(lsb_release -sd | awk '{print $2}')"}"
# The default kernel for Image, leave it empty will install the lastest kernel.
DEFAULT_KERNEL="${DEFAULT_KERNEL:-}"
if [ -n "$DEFAULT_KERNEL" ]; then
DEFAULT_KERNEL="linux-image-$DEFAULT_KERNEL-generic"
fi
DEFAULT_KERNEL="${DEFAULT_KERNEL:-linux-image-extra-4.4.0-67-generic}"
# Install cobbler
wget -qO - http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler26/xUbuntu_14.04/Release.key | apt-key add -