Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 13:23:11 -0500 (EST)
From:      Richard Glidden <richard@glidden.org>
To:        oberman@es.net
Cc:        cft@panix.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: Dropping to single user 
Message-ID:  <200202191823.g1JINCa35372@zaphod.wox.org>
In-Reply-To: <20020219180156.ADF165D09@ptavv.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 Feb, Kevin Oberman wrote:

> Yes, a 'shutdown now' will "drop you to single-user mode, but you
> REALLY want to reboot after you installkernel and before you
> installworld. 

Actually, isn't this dangerous, since you would be booting a new kernel
with an old world, which could cause problems if there are significant
changes to the kernel that breaks the old world?  What I usually do is:

make buildworld
make buildkernel KERNCONF=xxxx
shutdown +15 "Upgrading the World.  Be right back."
  <backup /etc, the old kernel, anything else that's critical>
make installkernel KERNCONF=xxxx
mergemaster
make installworld
shutdown -r now

This way, the running kernel always matches the installed world until
that final "shutdown -r now" command.  At worst, if the new world
completely breaks everything, even your ability to reboot, you can just
hit the reset switch and hope everything was written to disk first.

-- 
Richard Glidden
richard@glidden.org


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




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