From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 26 18:11:01 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F6461065672; Mon, 26 Mar 2012 18:11:01 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 73EFC8FC14; Mon, 26 Mar 2012 18:10:54 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so5818788bkc.13 for ; Mon, 26 Mar 2012 11:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:in-reply-to:references:x-mailer; bh=p5J1Fi0iBAXH3X4WTNvpVlDsIAH14RD/7OaeCNh7aGA=; b=Qs0WlTMbmTWR3BwD+vnpIegxic5UpQGgiXzZ/T0uKMt3HFgpH2IVrdUBHRwa48+YBE NPEItVCn/JxExnrAqL/2OE6O7aXa+6I41Nd6YDfaPyAWpkjv0lp941Z3YwlMjnX/HMb9 S3Ucnd/hjcomyFiuPr0cfR7CeQzRqoXYc2ROWd0tREY770pnhyMfYjNMQE0IAWvwbDGd A7L+evf9SOjtLnxmrKI/2Tl73FiFae+OrYbzyC8MXhmaQ3f63alG0QKe4jq+tS6Wqa7s BPDIkPS7AUhmE9d8M+gei9aoaP0aYPRmPEkpCHDY5ZcovvFxL6uEHTTflDKeQb9LBEAo 4BWA== Received: by 10.205.139.77 with SMTP id iv13mr8123104bkc.91.1332785454100; Mon, 26 Mar 2012 11:10:54 -0700 (PDT) Received: from DOMYPC ([82.193.208.173]) by mx.google.com with ESMTPS id s16sm34106847bkt.3.2012.03.26.11.10.46 (version=SSLv3 cipher=OTHER); Mon, 26 Mar 2012 11:10:52 -0700 (PDT) Message-ID: <20120326.181050.391.3@DOMY-PC> From: rank1seeker@gmail.com To: "John Baldwin" , hackers@freebsd.org Date: Mon, 26 Mar 2012 20:10:50 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable In-Reply-To: <201203261018.53717.jhb@freebsd.org> References: <20120325.184917.751.1@DOMY-PC> <201203261018.53717.jhb@freebsd.org> X-Mailer: POP Peeper (3.8.1.0) Cc: Subject: Re: Active slice, only for a next boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2012 18:11:01 -0000 ----- Original Message -----=0D=0AFrom: John Baldwin = =0D=0ATo: freebsd-hackers@freebsd.org=0D=0ACc: = rank1seeker@gmail.com, hackers@freebsd.org=0D=0ADate: Mon, 26 Mar 2012 = 10:18:53 -0400=0D=0ASubject: Re: Active slice, only for a next = boot=0D=0A=0D=0A> On Sunday, March 25, 2012 2:49:17 pm = rank1seeker@gmail.com wrote:=0D=0A> > After having a thought about this = issue and also currently looking at a =0D=0A> BootEasy boot manager = ...=0D=0A> > 'boot0cfg' is almost perfect for this task and should/could = be "exploited".=0D=0A> > =0D=0A> > It's '-o noupdate' already does a = major task, of keeping main slice active.=0D=0A> > Now all we need is a = flag, through which we specify slice to boot (replacing =0D=0A> human = presing button).=0D=0A> > From that point on, existing code simply = proceeds with received value.=0D=0A> > =0D=0A> > '-o noupdate' ensures = next boot will bring up main/active slice.=0D=0A> =0D=0A> You mean like = 'boot0cfg -s 4'?=0D=0A> =0D=0A> -- =0D=0A> John Baldwin=0D=0A> = =0D=0A=0D=0A=0D=0AYes, but new flag for that purpose ('-n' for example = =3D> nextboot).=0D=0A=0D=0AI.e; =0D=0A # 'boot0cfg -s 4 -o noupdate -n = 3'=0D=0A=0D=0AWould, set the default/main boot selection to slice 4 and = '-o noupdate' ensures it remains that way, while '-n 3' would auto = press/choose slice 3 in selection menu, as human would.=0D=0AWell in that = case, better to not show menu at all, thus only "blic" into slice = 3.=0D=0AAt next boot it is at slice 4 again.=0D=0A=0D=0A=0D=0ADomagoj = Smol=E8i=E6