]> TLD Linux GIT Repositories - packages/grub2.git/blob - tld-sysconfdir.patch
- merged 2.12 from PLD
[packages/grub2.git] / tld-sysconfdir.patch
1 diff -ur grub-2.04.orig/util/grub.d/README grub-2.04/util/grub.d/README
2 --- grub-2.04.orig/util/grub.d/README   2018-11-24 18:13:02.000000000 +0100
3 +++ grub-2.04/util/grub.d/README        2019-08-18 15:41:16.068000000 +0200
4 @@ -8,4 +8,4 @@
5  The number namespace in-between is configurable by system installer and/or
6  administrator.  For example, you can add an entry to boot another OS as
7  01_otheros, 11_otheros, etc, depending on the position you want it to occupy in
8 -the menu; and then adjust the default setting via /etc/default/grub.
9 +the menu; and then adjust the default setting via /etc/sysconfig/grub.
10 diff -ur grub-2.04.orig/util/grub-mkconfig.in grub-2.04/util/grub-mkconfig.in
11 --- grub-2.04.orig/util/grub-mkconfig.in        2019-05-20 12:59:36.000000000 +0200
12 +++ grub-2.04/util/grub-mkconfig.in     2019-08-18 15:41:16.068000000 +0200
13 @@ -154,8 +154,8 @@
14         GRUB_EARLY_INITRD_LINUX_STOCK="intel-uc.img intel-ucode.img amd-uc.img amd-ucode.img early_ucode.cpio microcode.cpio"
15  fi
16  
17 -if test -f ${sysconfdir}/default/grub ; then
18 -  . ${sysconfdir}/default/grub
19 +if test -f ${sysconfdir}/sysconfig/grub ; then
20 +  . ${sysconfdir}/sysconfig/grub
21  fi
22  
23  # XXX: should this be deprecated at some point?
24 @@ -254,7 +254,7 @@
25  # DO NOT EDIT THIS FILE
26  #
27  # It is automatically generated by $self using templates
28 -# from ${grub_mkconfig_dir} and settings from ${sysconfdir}/default/grub
29 +# from ${grub_mkconfig_dir} and settings from ${sysconfdir}/sysconfig/grub
30  #
31  EOF
32  
33 @@ -280,7 +280,7 @@
34    if ! ${grub_script_check} ${grub_cfg}.new; then
35      # TRANSLATORS: %s is replaced by filename
36      gettext_printf "Syntax errors are detected in generated GRUB config file.
37 -Ensure that there are no errors in /etc/default/grub
38 +Ensure that there are no errors in /etc/sysconfig/grub
39  and /etc/grub.d/* files or please file a bug report with
40  %s file attached." "${grub_cfg}.new" >&2
41      echo >&2