Subject: Re: install-target for /sys/arch/*/conf/Makefile.* ?
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 04/25/2000 13:30:50
># The install target can be redefined by putting a
># install-kernel-${MACHINE_NAME} target into /etc/mk.conf
>MACHINE_NAME!=  uname -n
>install: install-kernel-${MACHINE_NAME}
>.if !target(install-kernel-${MACHINE_NAME}})
>install-kernel-${MACHINE_NAME}:
>        rm -f /onetbsd
>        mv /netbsd /onetbsd
>        cp netbsd /
>.endif

it's a nice idea, but what if the machine panics during the final cp?
this might be a better sequence.

	cp /netbsd /onetbsd
	cp netbsd /newnetbsd
	mv /newnetbsd /netbsd

it's much more atomic.

fwiw - freebsd's kernel install target sets schg on the newly
installed kernel.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."