]> TLD Linux GIT Repositories - packages/grub2.git/blob - tld-sysconfdir.patch
f5f08096fe6fb00c4f0cb377dacb8737e6c1aae7
[packages/grub2.git] / tld-sysconfdir.patch
1 diff -urNp grub-2.02-rc1.orig/util/grub.d/README grub-2.02-rc1/util/grub.d/README
2 --- grub-2.02-rc1.orig/util/grub.d/README       2017-02-03 19:17:48.000000000 +0000
3 +++ grub-2.02-rc1/util/grub.d/README    2017-02-08 15:00:50.481320993 +0000
4 @@ -8,4 +8,4 @@ All executable files in this directory a
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 -urNp grub-2.02-rc1.orig/util/grub-mkconfig.in grub-2.02-rc1/util/grub-mkconfig.in
11 --- grub-2.02-rc1.orig/util/grub-mkconfig.in    2017-02-03 19:17:48.000000000 +0000
12 +++ grub-2.02-rc1/util/grub-mkconfig.in 2017-02-08 15:00:50.481320993 +0000
13 @@ -147,8 +147,8 @@ if [ x"$GRUB_FS" = xunknown ]; then
14      GRUB_FS="$(stat -f --printf=%T / || echo unknown)"
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 @@ -243,7 +243,7 @@ cat << EOF
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 @@ -269,7 +269,7 @@ if test "x${grub_cfg}" != "x" ; then
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