Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OsclB-0004Vy-7T for mharc-grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:25 -0400 Received: from [140.186.70.92] (port=55735 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oscl7-0004TY-9V for grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Osckx-0005Se-V4 for grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:13 -0400 Received: from smtpout01s1.x-echo.com ([193.252.149.37]:56301) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Osckx-0005SQ-Lz for grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:11 -0400 Received: from colinux.localdomain (localhost.localdomain [127.0.0.1]) by colinux.localdomain (SMTP Server) with ESMTP id 5EA7E1000E for ; Mon, 6 Sep 2010 16:33:10 +0200 (CEST) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=MIMEBOUNDARY To: grub-devel@gnu.org From: Yves Blusseau Date: Mon, 06 Sep 2010 16:33:10 +0200 Message-ID: <20100906143310.11366.48071.stgit@colinux.localdomain> In-Reply-To: <20100906143305.11366.62355.stgit@colinux.localdomain> References: <20100906143305.11366.62355.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: Mon, 06 Sep 2010 14:33:23 -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 828b54b..a7b8f5e 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 "${transform};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--