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