From 9a48d3728d20b54ba078f808ae29b60f7edb4498 Mon Sep 17 00:00:00 2001 From: Weezer Su Date: Tue, 14 Mar 2017 19:45:30 -0500 Subject: [PATCH] Fix the kernel version been deployed on VMs Base on the http://packages.ubuntu.com/trusty/kernel/, the linux-image-generic will install the 3.13.0.112.120 [amd64, i386] kernel. leave it empty will do nothing to the kernel. this is important when you deploy ubuntu 14.04.5 on VMs which use 4.4 rather then 3.13. Change-Id: I7984edaef5a65320ec3b10085646e8ad5c93f65d --- multi-node-aio/setup-cobbler.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/multi-node-aio/setup-cobbler.sh b/multi-node-aio/setup-cobbler.sh index 7437ad56..e5d0784d 100755 --- a/multi-node-aio/setup-cobbler.sh +++ b/multi-node-aio/setup-cobbler.sh @@ -26,9 +26,7 @@ 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 [ -z "$DEFAULT_KERNEL" ]; then - DEFAULT_KERNEL=linux-image-generic -else +if [ -n "$DEFAULT_KERNEL" ]; then DEFAULT_KERNEL="linux-image-$DEFAULT_KERNEL-generic" fi