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