/[smeserver]/rpms/e-smith-grub/sme10/e-smith-grub-2.6.1-efi.patch
ViewVC logotype

Contents of /rpms/e-smith-grub/sme10/e-smith-grub-2.6.1-efi.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Feb 17 22:49:41 2021 UTC (3 years, 2 months ago) by chrissn
Branch: MAIN
CVS Tags: e-smith-grub-2_6_1-10_el7_sme, e-smith-grub-2_6_1-8_el7_sme, e-smith-grub-2_6_1-11_el7_sme, e-smith-grub-2_6_1-9_el7_sme, HEAD
* Wed Jan 17 2021 Chris Sansom-Ninnes <chris@sansom.ninnes.net> 2.6.1-8.sme
- Add support for EFI systems [SME: 10998]

1 diff -urN e-smith-grub-2.6.1.old/root/etc/e-smith/events/actions/update-grub e-smith-grub-2.6.1/root/etc/e-smith/events/actions/update-grub
2 --- e-smith-grub-2.6.1.old/root/etc/e-smith/events/actions/update-grub 2021-02-17 22:22:46.513745448 +0000
3 +++ e-smith-grub-2.6.1/root/etc/e-smith/events/actions/update-grub 2021-02-17 22:27:03.302588400 +0000
4 @@ -1,5 +1,13 @@
5 #!/usr/bin/perl
6 use strict;
7 use warnings;
8 - system("/usr/sbin/grub2-mkconfig","-o","/boot/grub2/grub.cfg") == 0
9 - or die("Unable to update grub2\n");
10 +my $grubpath;
11 +
12 +if (-e "/sys/firmware/efi") {
13 + $grubpath = "/boot/efi/EFI/centos/grub.cfg";
14 +} else {
15 + $grubpath = "/boot/grub2/grub.cfg";
16 +}
17 +
18 +system("/usr/sbin/grub2-mkconfig", "-o", $grubpath) == 0
19 + or die("Unable to update grub2\n");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed