Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OtL2E-00057V-7L for mharc-grub-devel@gnu.org; Wed, 08 Sep 2010 09:49:58 -0400 Received: from [140.186.70.92] (port=56225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtL27-0004nR-6O for grub-devel@gnu.org; Wed, 08 Sep 2010 09:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtKv2-00080A-ID for grub-devel@gnu.org; Wed, 08 Sep 2010 09:42:33 -0400 Received: from smtpout01s1.x-echo.com ([193.252.149.37]:44795) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtKv2-000806-8V for grub-devel@gnu.org; Wed, 08 Sep 2010 09:42:32 -0400 Received: from colinux.localdomain (localhost.localdomain [127.0.0.1]) by colinux.localdomain (SMTP Server) with ESMTP id 9190E10121 for ; Wed, 8 Sep 2010 15:42:29 +0200 (CEST) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=MIMEBOUNDARY To: grub-devel@gnu.org From: Yves Blusseau Date: Wed, 08 Sep 2010 15:42:29 +0200 Message-ID: <20100908134229.15373.65658.stgit@colinux.localdomain> In-Reply-To: <20100908134224.15373.88203.stgit@colinux.localdomain> References: <20100908134224.15373.88203.stgit@colinux.localdomain> User-Agent: StGit/0.15-97-g9680 X-AV-Checked: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH 2/2] Use new variable defined by configure.ac X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2010 13:49:54 -0000 This is a MIME message. --MIMEBOUNDARY Content-Disposition: inline MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit * util/grub-mkconfig.in: Use new variable. --- ChangeLog.use-new-variables | 3 +++ util/grub-mkconfig.in | 16 +++------------- 2 files changed, 6 insertions(+), 13 deletions(-) create mode 100644 ChangeLog.use-new-variables --MIMEBOUNDARY Content-Disposition: attachment; filename=use-new-variable.patch MIME-Version: 1.0 Content-Type: text/plain; name=use-new-variable.patch; charset="utf-8" Content-Transfer-Encoding: 7bit diff --git a/ChangeLog.use-new-variables b/ChangeLog.use-new-variables new file mode 100644 index 0000000..68f0c7d --- /dev/null +++ b/ChangeLog.use-new-variables @@ -0,0 +1,3 @@ +Use new variable defined by configure.ac + + * util/grub-mkconfig.in: Use new variable. diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in index 6f1d375..c3b4c33 100644 --- a/util/grub-mkconfig.in +++ b/util/grub-mkconfig.in @@ -38,6 +38,8 @@ self=`basename $0` grub_mkdevicemap=${sbindir}/`echo grub-mkdevicemap | sed ${transform}` grub_probe=${sbindir}/`echo grub-probe | sed ${transform}` +GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"` + # Usage: usage # Print the usage. usage () { @@ -93,18 +95,6 @@ done . ${libdir}/grub/grub-mkconfig_lib -case "$host_os" in -netbsd* | openbsd*) - # Because /boot is used for the boot block in NetBSD and OpenBSD, use /grub - # instead of /boot/grub. - GRUB_PREFIX=`echo /grub | sed ${transform}` - ;; -*) - # Use /boot/grub by default. - GRUB_PREFIX=`echo /boot/grub | sed ${transform}` - ;; -esac - if [ "x$EUID" = "x" ] ; then EUID=`id -u` fi @@ -200,7 +190,7 @@ for x in ${GRUB_TERMINAL_OUTPUT}; do exit 1 fi else - for dir in ${pkgdatadir} /boot/grub /usr/share/grub ; do + for dir in ${pkgdatadir} ${GRUB_PREFIX} /usr/share/grub ; do for basename in unicode unifont ascii; do path="${dir}/${basename}.pf2" if is_path_readable_by_grub ${path} > /dev/null ; then --MIMEBOUNDARY--