From e129fad7f8b4d051c64f32b49e5308816c7112d3 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Thu, 21 Apr 2022 10:02:34 +1200 Subject: [PATCH] Move reset-bls-entries to post-install 03-reset-bls-entries was previously a pre-install script to run after the machine-id was set, but a new kernel may be installed during the install phase, which will install another bls entry file with a filename which differs from the machine-id. This means this package installed bls file won't be updated when grub2-mkconfig is called, resulting in incorrect kernel args and boot device in the entry file that will get booted by default. By fixing the filenames after the new kernel is installed, grub2-mkconfig will update the bls file that actually gets used on boot. Change-Id: I653bef9638e38ded68458fd40d90e30e5206caad --- .../centos/{pre-install.d => post-install.d}/03-reset-bls-entries | 0 .../rhel/{pre-install.d => post-install.d}/03-reset-bls-entries | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename diskimage_builder/elements/centos/{pre-install.d => post-install.d}/03-reset-bls-entries (100%) rename diskimage_builder/elements/rhel/{pre-install.d => post-install.d}/03-reset-bls-entries (100%) diff --git a/diskimage_builder/elements/centos/pre-install.d/03-reset-bls-entries b/diskimage_builder/elements/centos/post-install.d/03-reset-bls-entries similarity index 100% rename from diskimage_builder/elements/centos/pre-install.d/03-reset-bls-entries rename to diskimage_builder/elements/centos/post-install.d/03-reset-bls-entries diff --git a/diskimage_builder/elements/rhel/pre-install.d/03-reset-bls-entries b/diskimage_builder/elements/rhel/post-install.d/03-reset-bls-entries similarity index 100% rename from diskimage_builder/elements/rhel/pre-install.d/03-reset-bls-entries rename to diskimage_builder/elements/rhel/post-install.d/03-reset-bls-entries