Use /boot/grub in NetBSD.
This commit is contained in:
parent
6ff5668ee4
commit
f70e5d2409
2 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
|
||||
|
||||
* util/grub-install.in: Set GRUB_PREFIX and BOOTDIR to "/grub"
|
||||
and "${rootdir}" respectively in NetBSD.
|
||||
|
||||
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
|
||||
|
||||
* stage2/builtins.c (builtin_geometry): Add extra space
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Install GRUB on your drive.
|
||||
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999, 2000, 2001 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
|
||||
|
@ -199,7 +199,19 @@ if test $debug = yes; then
|
|||
fi
|
||||
|
||||
# Initialize these directories here, since ROOTDIR was initialized.
|
||||
bootdir=${rootdir}/boot
|
||||
case "$host_os" in
|
||||
netbsd*)
|
||||
# Because /boot is used for the boot block in NetBSD, use /grub
|
||||
# instead of /boot/grub.
|
||||
grub_prefix=/grub
|
||||
bootdir=${rootdir}
|
||||
;;
|
||||
*)
|
||||
# Use /boot/grub by default.
|
||||
bootdir=${rootdir}/boot
|
||||
;;
|
||||
esac
|
||||
|
||||
grubdir=${bootdir}/grub
|
||||
device_map=${grubdir}/device.map
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue