From owner-freebsd-hackers@FreeBSD.ORG Wed May 29 16:03:22 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C6C2A41A; Wed, 29 May 2013 16:03:22 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 8D0A664F; Wed, 29 May 2013 16:03:22 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id tp5so8596183ieb.20 for ; Wed, 29 May 2013 09:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Y/zf121WgqklytmqnP9Z2OuO196go5jzuafbf/WD8Pk=; b=RePDd3n3do6QViq4SL20+ATSpUX6OXwnQDVFfjNlE4g4DAizmK8WrPuzyPSRPLJYEj RzUEEOunNfuqFqrBiutIMopQQFr3TVsj3idOUJXW/I2jjyKalj2MYmjoU/WOMCQObfPg oO8MdnHA8idUc40WH3kdnFgAeI/DIP0IluFisswMXjQVndgxytSLur8RbJZyl2Pr45tQ 8idSzMxZcfE79wS0a+fw0KNt0qN8eXzpY+qhZ7WeCfTSLCpuUzV6wJTcoVIlB5qke6NE J11AIQe99mPtMpS9gk/xUoxi6hPbk/9q6N3Mdl7p3IMxAK3RUybUbiT9ccXrDqoFJNh3 OOAA== X-Received: by 10.43.106.202 with SMTP id dv10mr1350012icc.37.1369843402259; Wed, 29 May 2013 09:03:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.71.101 with HTTP; Wed, 29 May 2013 09:02:52 -0700 (PDT) From: Chris Rees Date: Wed, 29 May 2013 17:02:52 +0100 Message-ID: Subject: Order of canonical upgrade sequence To: "freebsd-hackers@freebsd.org" , Warner Losh , Alexander Leidinger , Glen Barber Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 16:03:22 -0000 Hi all! Back in 2005, when Alexander Leidinger wrote the make delete-old target, he documented the order of upgrade such that it should be run before mergemaster [1]; # 7. `make installworld' # 8. `make delete-old' # 9. `mergemaster' I have merged the delete-old section of the Handbook into the upgrading chapter, and independently decided to put mergemaster first, because I thought it would be safer, but checked here before I committed. I think that steps 8 and 9 should be reversed, because of the possibility of an unbootable system being made, when an rc script references an executable that has just been removed for example. I cannot think of an example where the system is left unbootable/damaged if make delete-old is run after mergemaster. What do people think of the patch at [2]? Chris [1] http://svnweb.freebsd.org/base/head/Makefile?r1=148329&r2=148330& [2] http://www.bayofrum.net/~crees/patches/delete-old-order.diff