debian: Provide softlinks to grub menus

In /etc we make symbolic links to the grub config
files.  Why?  So tools like grubby can locate them.

We package these links in the grub2-common package
which is similar to what is done in CentOS.

Verification:
- install from iso, confirm the symlinks exist
in /etc

Story: 2009964
Task: 45044

Change-Id: I265b7c50300cfd37d1ab1d90db7bcfdad8fc7fcf
Signed-off-by: Jim Somerville <jim.somerville@windriver.com>
This commit is contained in:
Jim Somerville 2022-04-12 19:40:41 +00:00 committed by Jim Somerville
parent 9b3dde85f1
commit e2869c5bd1
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From a781e6bfe6af44d3bc159c01c9f8df684c782185 Mon Sep 17 00:00:00 2001
From: Jim Somerville <jim.somerville@windriver.com>
Date: Mon, 11 Apr 2022 22:02:21 +0000
Subject: [PATCH] Provide softlinks to grub menus
Allows tools such as grubby to locate them.
Signed-off-by: Jim Somerville <jim.somerville@windriver.com>
---
debian/grub2-common.links | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/grub2-common.links b/debian/grub2-common.links
index a082aa2..01d4ba8 100644
--- a/debian/grub2-common.links
+++ b/debian/grub2-common.links
@@ -4,3 +4,6 @@ usr/share/man/man8/update-grub.8 usr/share/man/man8/update-grub2.8
usr/share/bash-completion/completions/grub usr/share/bash-completion/completions/grub-install
usr/share/bash-completion/completions/grub usr/share/bash-completion/completions/grub-reboot
usr/share/bash-completion/completions/grub usr/share/bash-completion/completions/grub-set-default
+
+boot/efi/EFI/BOOT/grub.cfg etc/grub2-efi.cfg
+boot/grub2/grub.cfg etc/grub2.cfg
--
2.30.2

View File

@ -0,0 +1 @@
0001-Provide-softlinks-to-grub-menus.patch