Commit Graph
48 Commits
Author SHA1 Message Date
robertmh 31831d933f * util/grub-install.in: Detect GNU/k*BSD systems as well. 2004-07-20 19:30:24 +00:00
okuji e92d461e1c 2004-07-16 Yoshinori K. Okuji <okuji@enbug.org>
* util/grub-install.in (convert): Fix the sed statement for
        Linux. The expression was ambigious in some cases.
2004-07-16 11:49:58 +00:00
robertmh 01eb2cd1f4 * util/grub-install.in: Improve usage message. 2004-06-24 17:10:09 +00:00
robertmh b84bec9188 * stage1/Makefile.am: Move stage files to pkglibdir.
* stage2/Makefile.am: Likewise.
        * docs/grub.texi: s,/usr/share,/usr/lib,g.
        * util/grub-image.in: Look for stage files in pkglibdir.
        * util/grub-install.in: Likewise.
2004-06-24 17:04:55 +00:00
okuji 5b5f6dc772 2004-06-20 Yoshinori K. Okuji <okuji@enbug.org>
This is a big change on saving a default entry. This change
	makes it possible to set up a quite robust system using GRUB.
	Now we do not use the second sector of Stage 2 to store an
	entry number but use the file /boot/grub/default. This file
	must be generated by grub-set-default, although this file is
	plain-text.

	* util/grub-set-default.in: New file.

	* util/grub-install.in (grub_set_default): New variable.
	Use /grub instead of /boot/grub on OpenBSD as well as NetBSD.
	Run grub-set-default to make a default file.

	* util/Makefile.am (sbin_SCRIPTS): Added grub-set-default.

	* stage2/stage2.c (run_menu): Change the fallback handling to
	support multiple fallback entries.
	(cmain): Likewise. Also, get a saved entry from a default file
	if possible, before reading a config file.

	* stage2/shared.h (DEFAULT_FILE_BUF): New macro.
	(DEFAULT_FILE_BUFLEN): Likewise.
	(CMDLINE_BUF): Set to DEFAULT_FILE_BUF + DEFAULT_FILE_BUFLEN.
	(MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - MENU_BUF.
	(fallback_entry): Removed.
	(fallback_entries): Declared.
	(fallback_entryno): Likewise.
	(MAX_FALLBACK_ENTRIES): New macro.

	* stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of
	FALLBACK_ENTRY.

	* stage2/builtins.c (fallback_entry): Removed.
	(fallback_entryno): New variable.
	(fallback_entries): Likewise.
	(init_config): Initialize FALLBACK_ENTRYNO and FALLBACK_ENTRIES.
	(fallback_func): Rewritten completely.
	(savedefault_func): Likewise.

	* docs/grub.texi (grub-set-default): New direntry.
	(Installation): Describe grub-set-default for manual
	installations.
	(Making your system robust): New section.
	(Booting once-only): New subsection.
	(Booting fallback systems): Likewise.
	(fallback): Describe multiple fallback entries.
	(savedefault): Describe an optional argument.
	(Invoking grub-set-default): New chapter.
	(Future): Replaced with a description about GRUB 2.

	* configure.ac (AC_CONFIG_FILES): Added util/grub-set-default.
2004-06-20 13:48:47 +00:00
okuji b42b9b7e22 2004-03-12 Yoshinori K. Okuji <okuji@enbug.org>
From Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>:
	* util/grub-install.in (convert): Add support for ATARAID
	device names.
	* lib/device.c (get_ataraid_disk_name) [__linux__]: New
	function.
	(init_device_map) [__linux__]: Probe ATARAID disks.

	* stage2/size_test (check): Don't use the local statement any
	longer. It was unneeded actually. Reported by Paul Jarc.
2004-03-12 18:16:40 +00:00
okuji dcf4389bde 2004-01-18 Yoshinori K. Okuji <okuji@enbug.org>
From Thomas Schwinge <kischde@gmx.net>:
	* grub/Makefile.am (AM_CPPFLAGS): New variable.
	(AM_CFLAGS): Removed all cpp flags.

	* stage2/xfs.h (__int8_t): Renamed to ...
	(xfs_int8_t): ... this.
	(__uint8_t): Renamed to ...
	(xfs_uint8_t): ... this.
	(__int16_t): Renamed to ...
	(xfs_int16_t): ... this.
	(__uint16_t): Renamed to ...
	(xfs_uint16_t): ... this.
	(__int32_t): Renamed to ...
	(xfs_int32_t): ... this.
	(__uint32_t): Renamed to ...
	(xfs_uint32_t): ... this.
	(__int64_t): Renamed to ...
	(xfs_int64_t): ... this.
	(__uint64_t): Renamed to ...
	(xfs_uint64_t): ... this.
	All callers are changed.x

	From Egmont Koblinger <egmont@uhulinux.hu>:
	* util/grub-install.in: Support an install devices in GRUB's
	notation without parentheses.

	* docs/grub.texi (Installing GRUB using grub-install): Added an
	example of using grub-install without parentheses.
2004-01-18 19:47:18 +00:00
okuji 469abceb70 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.
2004-01-18 18:33:30 +00:00
jthomas fc2a2dc3d7 added new function to resolve_symlink to grub-install.in
moved code from find_device to this function
install_device is now run through the new function
2003-08-13 02:14:46 +00:00
jthomas 00cdabfa51 added --no-floppy option to grub-install 2003-08-01 01:26:49 +00:00
okuji df002327f6 2003-02-20 Yoshinori K. Okuji <okuji@enbug.org>
* util/grub-install.in (find_device): Fix the sed script.
2003-02-19 23:26:46 +00:00
okuji 58703b663c 2002-05-20 Yoshinori K. Okuji <okuji@enbug.org>
* lib/device.c (read_device_map): Show an error message and exit
	abnormally, if MAP[DRIVE] has already been filled.
	* util/grub-install.in: If there is any dulicated entry, print
	an error message and exit abnormally.
2002-05-20 11:48:03 +00:00
proski d6f4c1c620 * util/grub-install.in: Fix hardcoded /dev/hda1. 2002-04-06 22:30:18 +00:00
okuji 86d5582ec2 2002-04-06 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/builtins.c [GRUB_UTIL] (dump_func): New function.
	[GRUB_UTIL] (builtin_dump): New variable.
	(builtin_table) [GRUB_UTIL]: Added a pointer to BUILTIN_DUMP.
	* util/grub-install.in: Make sure that GRUB reads the same
	images as the host operating system by comparing the result of
	running the command "dump" with the contents of the OS file.
2002-04-06 12:15:13 +00:00
proski a751da838c * util/grub-install.in (find_device): New function - find block
device for given file or directory.  Resolve symlinks to fix
problem on Linux with devfs and old device names in /etc/fstab.
Use find_device() for root_device, bootdir_device and
grubdir_device.
2002-02-11 08:10:57 +00:00
okuji daa965eccc 2002-01-02 Jeremy Katz <katzj@redhat.com>
* util/grub-install.in: Support using mktemp as well as tempfile
	for secure temporary file creation.
2002-01-02 18:46:31 +00:00
okuji aaccdfc4ba Add NetBSD support into grub-install. 2001-12-29 18:53:30 +00:00
okuji f70e5d2409 Use /boot/grub in NetBSD. 2001-12-29 18:33:39 +00:00
okuji a8ac7eb3f9 add support for DAC960. 2001-10-13 04:20:05 +00:00
gord eca369e8d0 Report errors for unrecognized options. 2001-09-22 06:06:17 +00:00
okuji cfbf950f5d Fix a problem when you specify a Linux devfs floppy device name to grub-install. 2001-07-13 11:51:24 +00:00
okuji dfee6ac3ec add freebsd 4.x support into the grub shell and grub-install. 2001-02-28 11:19:39 +00:00
okuji fb01925bdf revise the fix for floppy device handling in grub-install. 2000-12-13 17:15:30 +00:00
okuji 29aa359512 fix a floppy handling bug in grub-install. 2000-12-09 10:14:09 +00:00
okuji 7561bde29d add a new utility, grub-md5-crypt. 2000-10-21 21:58:46 +00:00
okuji 728e74eef6 add backslashes into continuous lines in grub-install. 2000-10-21 20:46:06 +00:00
okuji 636299cc50 add a new option --recheck into grub-install, relieve the check of a device file in grub-install. 2000-10-15 18:24:58 +00:00
okuji 0f8fdcc8b2 added support for native devfs device names into grub-install. 2000-10-14 17:04:45 +00:00
okuji 1301164d4c don't assume that a device file name consists of only alphanums. 2000-10-10 06:09:55 +00:00
okuji aa7121490f fix a bug in grub-install. 2000-10-08 03:42:36 +00:00
okuji 504e540242 fix a bug in grub-install, which affected only GNU/Hurd. 2000-09-30 01:35:21 +00:00
okuji c6c180757e add --prefix into the command setup, and add separate boot partition support into grub-install. 2000-09-25 16:05:47 +00:00
okuji 35662478d7 print an error number even in Stage 2. 2000-09-05 12:02:42 +00:00
okuji 9015cd0364 fix a typo in grub-install, and fix open flags in install_func. 2000-09-03 05:08:50 +00:00
okuji 7ab4e9c240 add a workaround for the bug in Linux into the grub shell. 2000-08-08 16:41:56 +00:00
okuji e92b021096 fix a floppy device name bug in grub-install. 2000-06-11 03:24:38 +00:00
gord 1675300153 Add Pavel Roskin's improvements to grub-install.in. 2000-05-29 16:32:57 +00:00
okuji 81850d7016 recognize the Linux extended partition and add a sanity check into grub-install. 2000-05-13 04:13:00 +00:00
okuji 98ca2ba846 fix some portability problems (by pavel). 2000-04-19 10:34:35 +00:00
okuji 92fca67cf5 make the LBA support bitmap checks configurable at the installation time. 2000-04-18 11:22:07 +00:00
okuji 31f1004b74 fix a bug in grub-install. 2000-04-15 14:00:33 +00:00
okuji eb321e77f7 fix many bugs. see ChangeLog. 2000-04-02 17:22:53 +00:00
okuji a92313f507 change the option name root to root-directory for grub-install, update the FAQ. 2000-01-19 10:52:27 +00:00
okuji 68b1a3d231 enable the fallback in bios.c, add new options into grub-install. 2000-01-10 17:54:22 +00:00
okuji adcd2008e1 make sure that the user does not have a separate partition for /boot in the script grub-install. 2000-01-08 08:42:54 +00:00
gord 9f3e0b8ec5 Minor cleanups 1999-11-19 17:41:32 +00:00
okuji 1f9a7e6efc fix many bugs in grub-install. 1999-11-19 07:55:46 +00:00
okuji ca0ad141b6 add grub-install. 1999-11-18 06:00:32 +00:00