StarlingX Linux kernel
Go to file
Joe Slater 98644316c6 kernel: modify spec file to set grub default boot
When a new kernel is installed, the grub default boot image is
not modified which can result in the rescue image being selected.
We force the default to item 0 which will be the new kernel.

The issue is that the grub boot default is only changed when a kernel
is removed.  The way the scriptlets work is to update the grub options
(and default) for the kernel being removed, then update the options
(but not the default) for the kernel being added.  This works fine if
you are installing a new kernel, booting to it, then removing the old
one, but that is not what we do.  I think the proper long term solution
might be to change kernel-install, but the expedient way to fix the
problem is to make sure posttrans updates the grub default.

Testing

The term kernel patch refers to a designer patch which includes the
kernel and rpm's with kernel dependencies.  Generate three such patches.
Install/remove them in various combinations rebooting after each
operation.

install A; remove A  (PASS)
install A; install B; remove B; remove A; install B  (PASS)
install AB; remove B; install C  (PASS)
install ABC; remove CB; install C  (PASS)

Closes-Bug: 1954945

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Change-Id: I7a92f20cf43816e5ebe0c47f91d7597afa392dcf
2021-12-17 19:35:08 +00:00
doc Switch to newer openstackdocstheme and reno versions 2020-06-04 14:30:28 +02:00
kernel-modules Merge "intel-igb_uio: add initial version for debian" 2021-11-26 17:44:31 +00:00
kernel-rt kernel: modify spec file to set grub default boot 2021-12-17 19:35:08 +00:00
kernel-std kernel: modify spec file to set grub default boot 2021-12-17 19:35:08 +00:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:30:28 +02:00
userspace/mellanox rdma-core/libibverbs: add initial versions for debian 2021-11-24 17:20:40 +00:00
.gitignore Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
.gitreview Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
.zuul.yaml Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
centos_build_layer.cfg Config file changes to add 'kernel-std kernel-rt kernel-modules ' after relocation from 'stx/integ' 2020-04-09 10:50:11 -04:00
centos_extra_downloads.lst opae-intel-fpga-driver build failed because missed its soft link 2021-07-28 23:18:09 -04:00
centos_guest_image_rt.inc Support out of tree modules in kernel 5.10. 2021-07-23 04:03:18 -04:00
centos_guest_image.inc Support out of tree modules in kernel 5.10. 2021-07-23 04:03:18 -04:00
centos_iso_image.inc centos_iso_image.inc: Include bpftool in the ISO 2021-11-01 13:31:44 -04:00
centos_pkg_dirs Support out of tree modules in kernel 5.10. 2021-07-23 04:03:18 -04:00
centos_pkg_dirs_rt Support out of tree modules in kernel 5.10. 2021-07-23 04:03:18 -04:00
centos_srpms_centos3rdparties.lst [kernel-rt 4.18] Upgrade kernel-rt to version 4.18.0-147.3.1 based on SRPM 2020-04-30 11:25:20 +08:00
centos_tarball-dl.lst kernel-modules: Update i40e, iavf and ice device drivers 2021-10-18 10:10:02 -04:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:08:21 -04:00
LICENSE Config file changes to add 'kernel-std kernel-rt kernel-modules ' after relocation from 'stx/integ' 2020-04-09 10:50:11 -04:00
test-requirements.txt kernel: modify spec file to set grub default boot 2021-12-17 19:35:08 +00:00
tox.ini Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00