From owner-freebsd-embedded@freebsd.org Mon Jul 16 20:13:07 2018 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04DDF103B734 for ; Mon, 16 Jul 2018 20:13:07 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from kaija.ugh.net.au (kaija.ugh.net.au [IPv6:2a00:1a48:7803:107:65bc:4bde:ff08:1f7f]) by mx1.freebsd.org (Postfix) with ESMTP id 9691481ADD; Mon, 16 Jul 2018 20:13:06 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from [IPv6:2a00:c1a0:4884:7600:ad89:6710:642c:dd56] (unknown [IPv6:2a00:c1a0:4884:7600:ad89:6710:642c:dd56]) by kaija.ugh.net.au (Postfix) with ESMTPSA id 2D3718EC4; Mon, 16 Jul 2018 20:12:59 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: NanoBSD: how to add manual upgrade "approval" / auto roll-back? From: Andrew Stevenson In-Reply-To: Date: Mon, 16 Jul 2018 22:12:57 +0200 Cc: freebsd-embedded@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <98E0A548-4CFE-4C12-B0F0-3358B1DF841F@ugh.net.au> References: To: lev@FreeBSD.org X-Mailer: Apple Mail (2.3445.8.2) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2018 20:13:07 -0000 > On 16. Jul 2018, at 18:01, Lev Serebryakov wrote: >=20 > Is it possible to make some mechanism (in loader? I don't think > mbr/boot0 can accommodate this) which switch back active slice if boot > into new version was not successful (not all services started, or = kernel > hangs, or network is unavailable), so it will be possible to roll-back > upgrade by simple power cycle, without console access? Very important I haven=E2=80=99t done this but, assuming you are using gptboot, can you = not set the bootonce flag after upgrade? Then if the system comes up you = set bootme. Andrew=