Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 1999 05:54:41 +0900 (JST)
From:      dcs@newsguy.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/9406: old loader ought to be preserved on install
Message-ID:  <199901092054.FAA01313@localhost.ocn.ne.jp>

next in thread | raw e-mail | index | archive | help

>Number:         9406
>Category:       kern
>Synopsis:       /boot/loader is always overwritten on install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan  9 13:00:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Daniel C. Sobral
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	Three stage boot loader installation.

>Description:

	make install on sys/boot will always overwrite /boot/loader. The
new loader might not be as critical as a kernel, but it would still be
a help saving it just in case.

>How-To-Repeat:

	cd /sys/boot
	make install

>Fix:

	Apply the following patch:	

--- sys/boot/i386/loader/Makefile.orig	Sun Jan 10 05:43:16 1999
+++ sys/boot/i386/loader/Makefile	Sun Jan 10 05:49:11 1999
@@ -80,6 +80,9 @@
 	perl ${.CURDIR}/../../common/merge_help.pl ${.ALLSRC} > ${.TARGET}
 
 beforeinstall:
+.if exists(${DESTDIR}/boot/loader)
+	mv ${DESTDIR}/boot/loader ${DESTDIR}/boot/loader.old
+.endif
 .if exists(${.OBJDIR}/loader.help)
 	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
 		${.OBJDIR}/${BASE}.help ${DESTDIR}/boot

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901092054.FAA01313>