Skip updating BLS on ostree installations
Resolves: #2059776 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
This commit is contained in:
parent
3de994c662
commit
e31fc7ca96
@ -7,12 +7,15 @@ Signed-off-by: Peter Jones <pjones@redhat.com>
|
|||||||
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
||||||
[jhlavac: Use ${etcdefaultgrub} instead of /etc/default/grub]
|
[jhlavac: Use ${etcdefaultgrub} instead of /etc/default/grub]
|
||||||
Signed-off-by: Jan Hlavac <jhlavac@redhat.com>
|
Signed-off-by: Jan Hlavac <jhlavac@redhat.com>
|
||||||
|
[rharwood: skip on ostree installations]
|
||||||
|
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
||||||
---
|
---
|
||||||
Makefile.util.def | 7 +
|
Makefile.util.def | 7 +
|
||||||
util/grub-set-password.in | 2 +-
|
util/grub-set-password.in | 2 +-
|
||||||
util/grub-switch-to-blscfg.8 | 33 +++++
|
util/grub-switch-to-blscfg.8 | 33 +++++
|
||||||
util/grub-switch-to-blscfg.in | 317 ++++++++++++++++++++++++++++++++++++++++++
|
util/grub-switch-to-blscfg.in | 317 ++++++++++++++++++++++++++++++++++++++++++
|
||||||
4 files changed, 358 insertions(+), 1 deletion(-)
|
util/grub.d/10_linux.in | 2 +-
|
||||||
|
5 files changed, 359 insertions(+), 2 deletions(-)
|
||||||
create mode 100644 util/grub-switch-to-blscfg.8
|
create mode 100644 util/grub-switch-to-blscfg.8
|
||||||
create mode 100644 util/grub-switch-to-blscfg.in
|
create mode 100644 util/grub-switch-to-blscfg.in
|
||||||
|
|
||||||
@ -408,3 +411,16 @@ index 00000000000..a851424beb2
|
|||||||
+
|
+
|
||||||
+# Bye.
|
+# Bye.
|
||||||
+exit 0
|
+exit 0
|
||||||
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
||||||
|
index 9fcd77cacc3..81f35a2f3f0 100644
|
||||||
|
--- a/util/grub.d/10_linux.in
|
||||||
|
+++ b/util/grub.d/10_linux.in
|
||||||
|
@@ -138,7 +138,7 @@ blsdir="/boot/loader/entries"
|
||||||
|
|
||||||
|
get_sorted_bls()
|
||||||
|
{
|
||||||
|
- if ! [ -d "${blsdir}" ]; then
|
||||||
|
+ if ! [ -d "${blsdir}" ] || [ -f /run/ostree-booted ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
|||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
||||||
index 9fcd77cacc3..dc473f4333c 100644
|
index 81f35a2f3f0..98fd9da6610 100644
|
||||||
--- a/util/grub.d/10_linux.in
|
--- a/util/grub.d/10_linux.in
|
||||||
+++ b/util/grub.d/10_linux.in
|
+++ b/util/grub.d/10_linux.in
|
||||||
@@ -256,7 +256,9 @@ if [ -z "\${kernelopts}" ]; then
|
@@ -256,7 +256,9 @@ if [ -z "\${kernelopts}" ]; then
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.06
|
Version: 2.06
|
||||||
Release: 21%{?dist}
|
Release: 22%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/grub/
|
URL: http://www.gnu.org/software/grub/
|
||||||
@ -526,6 +526,10 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 10 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-22
|
||||||
|
- Skip updating BLS on ostree installations
|
||||||
|
- Resolves: #2059776
|
||||||
|
|
||||||
* Wed Mar 09 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-21
|
* Wed Mar 09 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-21
|
||||||
- Fix initialization in efidisk patch
|
- Fix initialization in efidisk patch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user