aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-02-13 23:56:18 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-02-13 23:56:18 +0100
commit590d90a44c0605297c0992d8246ff4692d8d3a68 (patch)
treec19cf644146c02c264f12371721c849ebf44cfb8
parente616b4c9a17110ac7f9424792e65db4390a06d73 (diff)
downloadimagefish-590d90a44c0605297c0992d8246ff4692d8d3a68.tar.gz
add /etc/sysconfig/kernel
-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}