Forum Stats

  • 3,825,196 Users
  • 2,260,479 Discussions
  • 7,896,435 Comments

Discussions

kernel-uek scriptlet sets DEFAULTKERNEL to kernel-uek

by default we use rhel compatible kernel on our boxes but we also include kernel-uek as fallback. the problem is everytime system is updated and kernel-uek happens to be part of the upgrade transaction this piece of code is executed

[[email protected] ~]# rpm -q --scripts kernel-uek-4.14.35-1838.el7uek.x86_64 | grep -A5 postinstallpostinstall scriptlet (using /bin/sh):if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&   [ -f /etc/sysconfig/kernel ]; then  /bin/sed -r -i -e 's/^DEFAULTKERNEL=.*$/DEFAULTKERNEL=kernel-uek/' /etc/sysconfig/kernel || exit $?fi

and kernel-uek is made default. I don't think that kernel-uek scriptlet should made such assumptions and force itself to be default but leave this decision to the users as rhel compatible kernel does. I would propose to remove this block of code. Thoughts?