aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install-redhat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install-redhat.sh')
-rwxr-xr-xscripts/install-redhat.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/install-redhat.sh b/scripts/install-redhat.sh
index 39a2b4d..2ee8288 100755
--- a/scripts/install-redhat.sh
+++ b/scripts/install-redhat.sh
@@ -173,6 +173,10 @@ msg "dnf install packages to $dest ..."
if test "$krnl" != ""; then
msg "dnf install $krnl to $dest ..."
(set -x; sudo $tool $quiet install $krnl) || exit 1
+ if test ! -f ${dest}/etc/sysconfig/kernel; then
+ echo "UPDATEDEFAULT=yes" > ${dest}/etc/sysconfig/kernel
+ echo "DEFAULTKERNEL=kernel-core" >> ${dest}/etc/sysconfig/kernel
+ fi
fi
sudo rm -rf "${dest}/var/cache/"{dnf,yum}