Subject: Re: install-target for /sys/arch/*/conf/Makefile.* ?
To: None <>
From: Andrew Brown <>
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}})
>        rm -f /onetbsd
>        mv /netbsd /onetbsd
>        cp netbsd /

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" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."