Keep boot and grub directory names in sync with utils scripts
* configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros. * config.h.in: Add previous macros. * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros. * util/grub-install.in: Use $bootdir and $grubdir variables.
This commit is contained in:
parent
4eff79d2f9
commit
a4c1d277c1
5 changed files with 22 additions and 5 deletions
|
@ -19,7 +19,7 @@
|
|||
#ifndef GRUB_EMU_MISC_H
|
||||
#define GRUB_EMU_MISC_H 1
|
||||
|
||||
#include <config-util.h>
|
||||
#include <config.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <grub/symbol.h>
|
||||
|
@ -35,9 +35,9 @@
|
|||
|
||||
#ifdef __NetBSD__
|
||||
/* NetBSD uses /boot for its boot block. */
|
||||
# define DEFAULT_DIRECTORY "/grub"
|
||||
# define DEFAULT_DIRECTORY "/"GRUB_DIR_NAME
|
||||
#else
|
||||
# define DEFAULT_DIRECTORY "/boot/grub"
|
||||
# define DEFAULT_DIRECTORY "/"GRUB_BOOT_DIR_NAME"/"GRUB_DIR_NAME
|
||||
#endif
|
||||
|
||||
#define DEFAULT_DEVICE_MAP DEFAULT_DIRECTORY "/device.map"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue