From owner-freebsd-questions@FreeBSD.ORG Wed Apr 1 22:10:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E19EC1065676 for ; Wed, 1 Apr 2009 22:10:25 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id C64AB8FC21 for ; Wed, 1 Apr 2009 22:10:25 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from [192.168.213.128] (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id n31MAND1076191; Wed, 1 Apr 2009 18:10:24 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Wed, 1 Apr 2009 18:10:23 -0400 User-Agent: KMail/1.9.10 References: <000f01c9b312$3d148cf0$b73da6d0$@griffiths@tenenbaum.co.uk> In-Reply-To: <000f01c9b312$3d148cf0$b73da6d0$@griffiths@tenenbaum.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904011810.23618.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Simon Griffiths Subject: Re: Build/Install world via ssh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2009 22:10:26 -0000 On Wednesday 01 April 2009 05:38:47 pm Simon Griffiths wrote: > Hello, > > I tried to get an answer to this via web searches etc. I have a > freebsd 7 box that I plan on upgrading remotely via > > Make buildworld > Make buildkernel KERNCONF=xyz > > Now im stuck, I cannot get it down to single user because I only have > access via ssh. Would it hurt to > > Make installkernel KERNCONF=xyz > Make installworld > > Mergemaster etc. > > Reboot What specific versions are you upgrading to/from? I personally do upgrades over SSH all the time (by skipping the single-user step) but there are reasons it's not recommended. If your new kernel doesn't work or play nicely for some reason you don't want to be stuck with a world newer than your (reinstalled) old kernel. If the system doesn't come back up multi-user for any of a variety of reasons then you won't have SSH access, etc. You should have good backups and a way to get console access if it's needed. That said, it usually works--especially for small incremental upgrades (7.0 to 7.1 or just different points along the same -STABLE branch, etc). So in a nutshell there are no guarantees but if you have an adequate bailout plan it can be a timesaver. JN