2004-01-18 Yoshinori K. Okuji <okuji@enbug.org>

* util/grub-install.in: Use the first word of GRUB_SHELL when
	checking if the grub shell is present. This is necessary to
	support options to the grub shell (e.g. grub --read-only).

	From Eric Kvaalen <E_Kvaalen.Arnesen@noos.fr>:
	* docs/grub.texi: Many bug fixes.
This commit is contained in:
okuji committed 2004-01-18 18:33:30 +00:00
1 parent 7b7b9a3f1b
commit 469abceb70
9 files changed
+268 -227

No files matched your search

+6 -4
View File
@@ -1,7 +1,7 @@
#! /bin/sh
# Install GRUB on your drive.
# Copyright (C) 1999,2000,2001,2002,2003 Free Software Foundation, Inc.
# Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -286,11 +286,13 @@ esac
grubdir=${bootdir}/grub
device_map=${grubdir}/device.map
# Check if GRUB is installed
if test -f "$grub_shell"; then
# Check if GRUB is installed.
# This is necessary, because the user can specify "grub --read-only".
set $grub_shell dummy
if test -f "$1"; then
:
else
echo "${grub_shell}: Not found." 1>&2
echo "$1: Not found." 1>&2
exit 1
fi