Use /boot/grub in NetBSD.

This commit is contained in:
okuji 2001-12-29 18:33:39 +00:00
parent 6ff5668ee4
commit f70e5d2409
2 changed files with 19 additions and 2 deletions

View file

@ -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> 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
* stage2/builtins.c (builtin_geometry): Add extra space * stage2/builtins.c (builtin_geometry): Add extra space

View file

@ -1,7 +1,7 @@
#! /bin/sh #! /bin/sh
# Install GRUB on your drive. # 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 # 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 # under the terms of the GNU General Public License as published by
@ -199,7 +199,19 @@ if test $debug = yes; then
fi fi
# Initialize these directories here, since ROOTDIR was initialized. # 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 grubdir=${bootdir}/grub
device_map=${grubdir}/device.map device_map=${grubdir}/device.map