Use TRUEPREFIX instead of PREFIX. ok sturm@
This commit is contained in:
parent
ed7d3d26ab
commit
7a29af4d84
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/04/13 08:29:17 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2007/06/05 18:25:22 bernd Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
COMMENT= "GRand Unified Bootloader"
|
||||
|
||||
DISTNAME= grub-0.97
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= sysutils
|
||||
|
||||
HOMEPAGE= http://www.gnu.org/software/grub/
|
||||
@ -29,7 +30,7 @@ CFLAGS= -ftrampolines -fno-stack-protector
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/grub
|
||||
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/grub
|
||||
@perl -pi -e "s,%%PREFIX%%,${PREFIX}," \
|
||||
@perl -pi -e "s,%%TRUEPREFIX%%,${TRUEPREFIX}," \
|
||||
${PREFIX}/share/doc/grub/README.OpenBSD
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/grub
|
||||
${INSTALL_DATA} ${FILESDIR}/menu.lst ${PREFIX}/share/examples/grub
|
||||
|
@ -42,7 +42,7 @@ Offset: 0 Signature: 0xAA55
|
||||
When booting, the kernel will use the disklabel from the first OpenBSD
|
||||
partition found, therefor grub has to set the partition type of unused
|
||||
partitions to another value as can be seen in
|
||||
%%PREFIX%%/share/examples/grub/menu.lst. The type of the last
|
||||
%%TRUEPREFIX%%/share/examples/grub/menu.lst. The type of the last
|
||||
partition, in this case partition 3, has to stay at 0xa6 in all cases,
|
||||
otherwise grub won't be able to find its /grub/menu.lst file. This means
|
||||
you have to install grub in the OpenBSD partition with the largest number.
|
||||
|
Loading…
Reference in New Issue
Block a user