Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 1995 14:56:41 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        davidg@Root.COM, scrappy@hub.org
Cc:        current@FreeBSD.ORG
Subject:   Re: follow-up to kernel compile problem...
Message-ID:  <199511250356.OAA04307@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>	So, each time that current updates, I'm going to have to 
>make world to keep it in sync?  Can I do a make world on a live
>system, if that is the case...or do I have to shutdown into single
>user mode?  someone had mentioned that they are going into single
>user mode each time *shrug*

>	If so, what would be recommended procedure to do this with the
>minimal downtime?

>	cd /usr/src
>	make
>	shutdown
>	kernel -s
>	make world

	# read all changes in /usr/src/etc and adapt them to your /etc

	# if config sources have changed
	cd /usr/src/usr.sbin/config
	make depend
	make
	su
	make INSTALL='install -C'
	exit

	# if config data files have changed
	cd /sys/i386/conf
	config -n YOURKERNEL

	# if kernel sources or kernel config have changed
	cd /sys/compile/YOURKERNEL
	make depend		# if anything relevant has changed
	make

	# if the kernel binary just changed
	su
	mv /kernel.old /kernel.veryold
	cp -p /kernel /kernel.old
	cp -p kernel /
	shutdown

	# if headers have changed
	cd /usr/src/include	# repeat this for other header dirs as necessary
	make depend
	make
	su
	make INSTALL='install -C'
	exit

	# if lib sources have changed
	cd /usr/src/lib
	make depend
	make
	su
	make INSTALL='install -C'
	exit

	# if any user sources have changed
	# do this one directory at a time if only a couple of things have
	# changed and you know what they are
	cd /usr/src
	make depend
	make
	su
	make INSTALL='install -C'
	exit

	# occasionally repeat previous step and/or do it for the whole tree
	# in case you missed something.

	# very occasionally repeat previous step in case the makefiles
	# missed something.

	# put INSTALL=install -C in /etc/make.conf to save typing

Bruce



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