From owner-freebsd-stable@FreeBSD.ORG Tue Jul 26 12:26:39 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 022F8106564A for ; Tue, 26 Jul 2011 12:26:39 +0000 (UTC) (envelope-from varga.michal@gmail.com) Received: from mail-ey0-f176.google.com (mail-ey0-f176.google.com [209.85.215.176]) by mx1.freebsd.org (Postfix) with ESMTP id 878808FC15 for ; Tue, 26 Jul 2011 12:26:38 +0000 (UTC) Received: by eya28 with SMTP id 28so654352eya.21 for ; Tue, 26 Jul 2011 05:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:organization :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=c1N4j5OqcVX90hXVmAUgsewtJaIvamuLwk62Zy67ztg=; b=SL+qhCHyvp+Y/VHgwtU3oMpNBMPBxpIzqeUNI84Yrav9VtUmOyQTTtJoc6M54IS/oJ G7yRJXcRQOeN+4gc8Arb3oxJ14RLmSeXPoZZX9We0kQnc2TPbq2FIuM86XQXpUrFyK1Y JWF8pagaYHxtfoygugVjxUuHPFkM0ydR87/gA= Received: by 10.213.13.72 with SMTP id b8mr771123eba.16.1311681543141; Tue, 26 Jul 2011 04:59:03 -0700 (PDT) Received: from [10.0.101.2] (254.166.broadband10.iol.cz [90.177.166.254]) by mx.google.com with ESMTPS id n42sm312483eef.2.2011.07.26.04.59.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jul 2011 04:59:02 -0700 (PDT) From: Michal Varga To: Jerome Herman In-Reply-To: <4E2E9F24.1040108@dichotomia.fr> References: <4E2E9F24.1040108@dichotomia.fr> Content-Type: text/plain; charset="UTF-8" Organization: Stonehenge Date: Tue, 26 Jul 2011 13:58:59 +0200 Message-ID: <1311681539.1799.54.camel@xenon> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Making world but no kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2011 12:26:39 -0000 On Tue, 2011-07-26 at 13:04 +0200, Jerome Herman wrote: > Hello, > > I would like to know if it is possible to rebuild world, but without > upgrading or even compiling the kernel. > > The problem is such : I am presently working on a FreeBSD station that > seems to have quite a lot of problem, notably with fsck. I am starting > to wonder whether this BSD station was properly installed, or if some of > the system tools were pasted from older FreeBSD setup. > Since the machine is in a remote location, I would prefer to avoid full > reinstall if possible. Among other things, single user mode is not > available. > > So I was wondering, if I get the full sources with sysinstall, can I > make buildworld and then installworld without going through the kernel > phase or would this be a bad idea ? > > Thanks for your help > > Jerome Herman `make buildworld installworld` won't build and install new kernel at all, so that basically answers your first question. You'd need to use `make buildworld installworld kernel` for that effect. To answer your other concern - reinstalling FreeBSD "on the fly" should be without any issues as long as you use the right src revisions corresponding to your current system (and kernel). Mixing worlds and kernels of different revisions should *mostly* work if there were no ABI changes during that time period, but you probably don't want trying this blindly without any means of recovery. Basically - it's doable, but I wouldn't do it with just a single shot on my disposal. Note that you don't necessarily need to install a new kernel in single user mode. While this is generally a good practice and a "safer way to do things", I haven't even done this for half a decade, and I'm re/installing FreeBSD builds practically on a daily basis. My advice: Personally, I'd consider it much safer to roll a new build of kernel along with the world, but again, that's just me. As you're already fully rebuilding a possibly broken installation (which you didn't do and thus don't know everything that might be rotting inside), chances of some magical failure are already pretty decent. Rolling an up-to-date kernel with the rest of the world shouldn't make them any lower, on the opposite, might even raise your chances of a successfull reboot. m. PS: Whatever that means, please don't get your sources through "sysinstall", that monster shouldn't even be present in a seriously maintained FreeBSD installation. Get your sources "the proper way" with csup: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html (note - "csup", not "cvsup", it's explained on the page in detail) -- Michal Varga, Stonehenge (Gmail account)