From e2869c5bd17df04198a3e1a948348871dd32bce9 Mon Sep 17 00:00:00 2001 From: Jim Somerville Date: Tue, 12 Apr 2022 19:40:41 +0000 Subject: [PATCH] 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 --- ...0001-Provide-softlinks-to-grub-menus.patch | 26 +++++++++++++++++++ grub/grub2/debian/deb_patches/series | 1 + 2 files changed, 27 insertions(+) create mode 100644 grub/grub2/debian/deb_patches/0001-Provide-softlinks-to-grub-menus.patch create mode 100644 grub/grub2/debian/deb_patches/series diff --git a/grub/grub2/debian/deb_patches/0001-Provide-softlinks-to-grub-menus.patch b/grub/grub2/debian/deb_patches/0001-Provide-softlinks-to-grub-menus.patch new file mode 100644 index 000000000..424ca6934 --- /dev/null +++ b/grub/grub2/debian/deb_patches/0001-Provide-softlinks-to-grub-menus.patch @@ -0,0 +1,26 @@ +From a781e6bfe6af44d3bc159c01c9f8df684c782185 Mon Sep 17 00:00:00 2001 +From: Jim Somerville +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 +--- + 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 + diff --git a/grub/grub2/debian/deb_patches/series b/grub/grub2/debian/deb_patches/series new file mode 100644 index 000000000..c69976f8c --- /dev/null +++ b/grub/grub2/debian/deb_patches/series @@ -0,0 +1 @@ +0001-Provide-softlinks-to-grub-menus.patch