From dcs@newsguy.com  Sat Jan  9 12:56:48 1999
Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA12965
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 9 Jan 1999 12:56:47 -0800 (PST)
          (envelope-from dcs@newsguy.com)
Received: from localhost.ocn.ne.jp by peach.ocn.ne.jp (8.9.1a/OCN) id FAA17631; Sun, 10 Jan 1999 05:56:14 +0900 (JST)
Received: (from root@localhost)
	by localhost.ocn.ne.jp (8.9.1/8.9.1) id FAA01313;
	Sun, 10 Jan 1999 05:54:41 +0900 (JST)
	(envelope-from root)
Message-Id: <199901092054.FAA01313@localhost.ocn.ne.jp>
Date: Sun, 10 Jan 1999 05:54:41 +0900 (JST)
From: dcs@newsguy.com
Reply-To: dcs@newsguy.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: old loader ought to be preserved on install
X-Send-Pr-Version: 3.2

>Number:         9406
>Category:       kern
>Synopsis:       /boot/loader is always overwritten on install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan  9 13:00:01 PST 1999
>Closed-Date:    Mon Feb 8 13:34:00 PST 1999
>Last-Modified:  Mon Feb  8 13:35:06 PST 1999
>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:
State-Changed-From-To: open->closed 
State-Changed-By: dcs 
State-Changed-When: Mon Feb 8 13:34:00 PST 1999 
State-Changed-Why:  
This has already been fixed. 
>Unformatted:
